This is best explained with MainDeployer and Deployers example: Instead of having each Deployer to call
| <install bean="MainDeployer" method="addDeployer"> | <parameter>this</parameter> | </install> | <install bean="MainDeployer" method="removeDeployer"> | <parameter>this</parameter> | </install> | You can just add this: | <bean name="MainDeployer" ...> | <incallback method="addDeployer"/> | <uncallback method="removeDeployer"/> | </bean> | The callback idea is to check the type of method's parameter - in this case Deployer interface - and when a matching bean (by type --> instance of) is installed/uninstalled, you execute this callback. So when a new Deployer bean is installed, it is automa(t|g)ically added to MainDeployer. Exchange MainDeployer with Employee and Deployer with Address, and there you go. ;-) All MC IoC xml elements have matching annotation support. In this case @Install/@Uninstall. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124194#4124194 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124194 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
