[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: enums, generics and other animals

alesj do-not-reply at jboss.com
Fri Mar 7 12:02:59 EST 2008


"adrian at jboss.org" wrote : 
  | 
  |   | 
  |   | public class MyAttributeHandler extends AttributeHander
  |   | {
  |   |    public void attribute(QName elemName,
  |   |                                   QName attrName,
  |   |                                   AttributeBinding binding,
  |   |                                   Object owner,
  |   |                                   Object value)
  |   |     {
  |   |        AbstractInjectionValueMetaData injection = (AbstractInjectionValueMetaData) owner;   
  |   | 
  |   |         String localName = attrName.getLocalPart();
  |   |          ...
  |   |          else if ("type".equals(localName))
  |   |             injection.setInjectionType((AutowireType) value)
  |   |    }
  |   | }
  |   | 
  | 
Yup, thought this was missing.

"adrian at jboss.org" wrote : 
  | But I'm not sure it is worth doing all this work, since these classes are going away soon.
OK, I'll leave the crappy getInstance until we move 100% to jaxb.
I'll put a TODO on removing this. And comment on it at the jaxb JIRA issue.

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

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



More information about the jboss-dev-forums mailing list