[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Install Items

adrian@jboss.org do-not-reply at jboss.com
Wed Apr 18 07:59:44 EDT 2007


Well actually you've got to hook up the intallation target as well in there somewhere
so you've either got to have


  | public interface InstallItem
  | {
  |   // ...
  |   setTarget(Object object)
  | }
  | 
  | or 
  | 
  | public interface SingleInstallItem
  | {
  |    add(Object target, Object item);
  | }
  | 

I think I prefer the second method since it is more stateless for the user
(less error prone and less likely to leak)
But that means the internal index of install items must also remember which context
owns the install item so it can retrieve the target from the context.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038327#4038327

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038327



More information about the jboss-dev-forums mailing list