[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: StructureContext and candidate annotations
alesj
do-not-reply at jboss.com
Wed Aug 6 09:14:35 EDT 2008
"adrian at jboss.org" wrote : I don't really understand what you are trying to do,
| but children are described by the ContextInfos of the StructureMetaData.
|
I need a place to store found annotations.
Or, a way to get additional information about deployment,
e.g. it's an EJB deployment since there is some class annotated with @Stateless.
In the case of EAR I need to check all sub deployments that are not explicitly described in application.xml.
First they need to be recognized by some strucuture deployer, in our case currently only JARStructure can recognize it (combination of StructureContext.isCandidateAnnotationScanning() && Deployer.isSupportsCandidateAnnotations() == false).
After it is recognized, I need to add additional type information to the EarModule metadata (EJB, Client, Connector, Service, ...).
So, I was thinking of keeping found annotation classes in the StructureContext instance.
But in EAR's case, I have access to top level structure context, where I actually need to check sub context's found annotations.
I don't see how ContextInfo can help me there.
Unless I keep this annotation lookup info there.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169037#4169037
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169037
More information about the jboss-dev-forums
mailing list