[jboss-dev-forums] [JBoss Microcontainer Development] - Re: Non-public field properties

alesj do-not-reply at jboss.com
Tue Nov 17 06:33:48 EST 2009


We don't do too much magic - which is what 330 supports.
e.g.

  | public class Foo
  | {
  |    @Inject
  |    public Foo(SomeMappedBean smb)
  |    ...
  | }
  | 

We require a bit more explicit wiring

  | public class Foo
  | {
  |    @Constructor
  |    public Foo(@Inject SomeMappedBean smb)
  |    ...
  | }
  | 
Which is already handled by @Constructor ctor plugin.
Plus the properties plugin should also be an Annotation2ValueMetaDataAdapters instance.

But I guess once we introduce qualifiers for MC in general,
we should support the example above - @Inject on ctor.
Which means your plugin is OK, but it could use a bit nicer code. ;-)
e.g. there already exist a code that checks for AbstractBeanMetaData instance of


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

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



More information about the jboss-dev-forums mailing list