[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Install Items
alesj
do-not-reply at jboss.com
Wed Apr 18 07:32:49 EDT 2007
Where to put such code:
| /**
| * Add callback context.
| *
| * @param name the depend on name
| * @param context context interested in name
| */
| void addCallbackContext(Object name, ControllerContext context);
|
| /**
| * Remove callback context.
| *
| * @param name the depend on name
| * @param context context interested in name
| */
| void removeCallbackContext(Object name, ControllerContext context);
|
| /**
| * Get interested contexts.
| *
| * @param name dependent name
| * @return set of contexts interested in name or null if none such exists
| */
| Set<ControllerContext> getCallbackContexts(Object name);
|
|
Best place would be Controller, but this is too specific for state machine.
Should I create a middle interface, between Controller and KernelController?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038313#4038313
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038313
More information about the jboss-dev-forums
mailing list