[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: StructureContext and candidate annotations

alesj do-not-reply at jboss.com
Wed Aug 6 10:15:18 EDT 2008


"adrian at jboss.org" wrote : 
  | Then JARStructure does something like:
  | 
  | 
  |   | if (annotationScanningEnabled && deploymentRecognised && annotationPresent)
  |   | {
  |   |    addChild();
  |   |    context.runAnnotationScanningCallbacks(context, env);
  |   | }
  |   | 
  | 
This 'visitor pattern' definitely looks better.

But in this case the context used in JARStructure
looks useless to me, since I don't have any access to it
from EARStructure code - in EARStructure::scanEar.

Unless I access parent context's callbacks.
Which is too impl specific - ear contains jars notion.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169055#4169055

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169055



More information about the jboss-dev-forums mailing list