[ http://jira.andromda.org/browse/SPRING-135?page=all ]

Bob Fields updated SPRING-135:
------------------------------

    Fix Version: 3.4-SNAPSHOT
                     (was: 3.2-RC1)

> Add support for Spring FactoryBeans
> -----------------------------------
>
>          Key: SPRING-135
>          URL: http://jira.andromda.org/browse/SPRING-135
>      Project: Spring Cartridge
>         Type: Improvement

>     Versions: 3.2-RC1
>     Reporter: Peter Friese
>     Assignee: Peter Friese
>      Fix For: 3.4-SNAPSHOT

>
> Usually when you model a dependency on a service, the Spring cartridge 
> creates a setter on the dependant service that receives an instance of the 
> target service. This works out fine as long as the target service is a normal 
> Spring bean. There is, however, something called "FactoryBean" in Spring - 
> see 
> http://www.springframework.org/docs/api/org/springframework/beans/factory/FactoryBean.html.
>  The Spring docs state that "A FactoryBean is defined in a bean style, but 
> the object exposed for bean references is always the object that it creates." 
> This results in type mismatches on the dependency setter.
> I suggest to annotate the dependency in order to specify the "real" type of 
> the reference. We could use a tagged value (e.g. 
> @andromda.spring.reference.type).
> For a bried discussion on this topic, see the forum: 
> http://galaxy.andromda.org/forum/viewtopic.php?p=8062

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


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects

Reply via email to