[ 
http://www.stripesframework.org/jira/browse/STS-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Frederic Daoud closed STS-642.
------------------------------

    Resolution: Not a Bug

> SpringInterceptorSupport  doesn't wire JPA @ PersistenceContext annotation
> --------------------------------------------------------------------------
>
>                 Key: STS-642
>                 URL: http://www.stripesframework.org/jira/browse/STS-642
>             Project: Stripes
>          Issue Type: Bug
>            Reporter: Jarek Robakiewicz
>            Priority: Minor
>
> Spring interceptor uses SpringHelper#injectBeans method which has custom 
> implementation of bean injection. This implementation ignores standard JPA 
> annoation supported by Spring.
> Using only Spring, this annotation works fine:
>         AutowireCapableBeanFactory beanFactory = 
> springContext.getAutowireCapableBeanFactory();
>         beanFactory.autowireBeanProperties(bean, 
> AutowireCapableBeanFactory.AUTOWIRE_NO, false);
> and is implemented by Spring Post processor
> PersistenceAnnotationBeanPostProcessor#private InjectionMetadata 
> findPersistenceMetadata(final Class clazz) 
> @SpringBean seems to be duplicate responsibility of @java.annotation.Resource 
> supported also by Spring. It provides capabiltiy of bean injection for 
> private fields (BTW not very useful during unit tests)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to