Previously we had a bizarre method on BeanInfo/ClassAdapter
which passed an opaque object (which was the MetaData)
but this was also very hacky.
Maybe we just need an extra method on the JoinpointFactory
something like:
| /**
| * Get a constructor join point
| *
| * @param constructorInfo the constructor info
| * @param metaData an opaque object
| * @return the constructor join point
| * @throws JoinpointException when no such constructor
| */
| ConstructorJoinpoint getConstructorJoinpoint(ConstructorInfo constructorInfo,
Object metaData) throws JoinpointException;
|
which InstantiateAction can use to pass the MetaData instead of the MetaDataStack.
This at least hides the ugliness from the main api and doesn't interfere with other
uses
fo ConstructorJoinpoints that use the original method.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166406#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...