java - Spring 3.1: Have Multiple @Qualifier References Point to Same Bean ID -



java - Spring 3.1: Have Multiple @Qualifier References Point to Same Bean ID -

i working multiple shared jar libraries cannot recompile, , need them utilize same bean "statfactory":

<bean id="statfactory" class="com.tastytoast.helper.statfactory">

all libraries 1 correctly utilize @qualifier("statfactory").

@qualifier("statfactory") @autowired private statfactory statfactory;

is there way rebel library uses @qualifer("statfactory") link "statfactory" bean? have looked online , there not seem mention of it.

for example, this:

<bean id="statfactory" redirect-to="statfactory">

thanks!

use alias can trick. <alias /> allow refer named bean name

<alias name="statfactory" alias="statfactory"/>

java spring dependency-injection javabeans autowired

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

java - Parsing XML, skip certain tags -

c# - ASP.NET MVC Sequence contains no matching element -