[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: MDR doesn't work on annotated privates
adrian@jboss.org
do-not-reply at jboss.com
Wed Aug 13 07:30:24 EDT 2008
"wolfc" wrote : "adrian at jboss.org" wrote :
| | I think we need a DeclaredMethodSignature. That should also solve the interfaces issue. Then I can put ejb3 meta data bridge on that one.
|
| Why a new signature? The idea of the MetaData is that it should be able to
| load relevant metadata and the caller doesn't have to think too hard.
|
| If we are going to support I'd prefer to have something like:
|
|
| | <bean name="MetaDataRepository" ...>
| | <property name="joinpointInheritableAnnotations">
| | <set class="java.lang.Class">
| | <value>javax.ejb.PostConstruct</value>
| | </set>
| | ...
| |
|
| Then it would be configuratble which annotations you need to do
| the wangy search (no suprises or extra work for other annotations)
| and it would be transparent to the user of MetaData.
|
| Incidently, I think this semantic is broken, since it means you cannot
| override the annotations of the super class. Not very OOPS. :-)
|
|
| | public Sub extends Super
| | {
| | @Override
| | // No annotations here
| | public void postConstruct() {}
| |
| | // This is my postConstruct method
| | @PostConstruct
| | public void myPostConstruct() {}
| | }
| |
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170304#4170304
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170304
More information about the jboss-dev-forums
mailing list