[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Passing MetaData to AOPConstructorJoinPoint
adrian@jboss.org
do-not-reply at jboss.com
Thu Jul 24 08:46:00 EDT 2008
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#4166406
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166406
More information about the jboss-dev-forums
mailing list