[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: JBMICROCONT-243 - parsing and managed objects

alesj do-not-reply at jboss.com
Fri Oct 31 12:32:02 EDT 2008


"scott.stark at jboss.org" wrote : 
  | Where is this getType used to build the callback signature?
Nowhere. ;-)
You're gonna use it.
e.g.

  | public class ICFHolder
  | {
  |    private Map<Class, ICF> ifcs = new HashMap();
  | 
  |    public void addICF(ICF icf)
  |    {
  |       icfs.put(icf.getType(), icf);
  |    }
  | 
  |    ...
  | }
  | 
Where callback would be on the addICF/removeICF.
getType is only there if you want to keep your map,
to know by the ICF::type which ICF to use on attachment.

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

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



More information about the jboss-dev-forums mailing list