I saw an example about blueprint when using factory. In the example they hard code the value of argument like "2" in the example below.
public class StaticAccountFactory {
public static Account createAccount(long number) {
return new Account(number);
}
}
...
<bean id="accountTwo"
class="org.apache.aries.simple.StaticAccountFactory"
factory-method="createAccount">
<argument **value="2"**/>
My question is how to sent this value from the client bundle that want to use this bean? and how to create service from this bean for that proposed? How about if that factory need a bundle object as a argument not the simple value, how the client bundle pass the bundle of itself to this factory?
Thanks in advance, anurak