[RT]: Why not use reflection to set instance variables directly?
public class Shop { /** * @dependency */ StockManager stockManager;
public Shop() { } }
And have the container use reflection to set the stockManager field as the component passes through the compose() stage?
That's essentially what XWork2 does, they have enabledXXX() methods that are used to deliver dependencies.
-pete
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
