[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: StructureContext and candidate annotations
adrian@jboss.org
do-not-reply at jboss.com
Wed Aug 6 05:47:33 EDT 2008
"alesj" wrote : "adrian at jboss.org" wrote :
| | 4) In StructureDeployerWrapper, ignore StructureDeployers where this
| | property is false when the candidateAnnotationScanning is enabled.
| |
| Ignore how / what?
|
| Probably not in this way:
|
| | public boolean determineStructure(StructureContext context) throws DeploymentException
| | {
| | if (context == null)
| | throw new IllegalArgumentException("Null context");
| |
| | if (supportsCandidateAnnotations() == false)
| | return false;
| |
| since we then don't even do basic recognition.
You don't want to do basic recognition. If the structure doesn't support
annotation scanning then you don't want to add to the ear.
e.g. a -service.xml shouldn't be added to the ear if it isn't listed in
application/jboss-app.xml
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168954#4168954
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168954
More information about the jboss-dev-forums
mailing list