[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: DESCRIBE phase - Dependency builders for MC Beans

jaikiran do-not-reply at jboss.com
Tue May 12 05:52:14 EDT 2009


"alesj" wrote : 
  | 
  |   |       DependencyBuilder dependencyBuilder = md.getMetaData(DependencyBuilder.class);
  |   |       if (dependencyBuilder == null)
  |   |       {
  |   |          IgnoreAOP ignoreAOP = md.getAnnotation(IgnoreAOP.class);
  |   |          if (ignoreAOP != null)
  |   |          {
  |   |             return basicDependencyBuilder;              
  |   | 
  |   | 
  | 
  | Or we could have @DependencyBuilderMarker, where you would define a DB class?
  | 

I guess, instead of checking two things in the metadata (a DependencyBuilder and a IgnoreAOP annotation), its better to just look for a single annotation which could be something along these lines (just some pseudo code):

@DependencyBuilder(value=DescribeAction.BASIC)
  | public class MyMCBean
  | {
  | ...
  | 

public @interface DependencyBuilder
  | {
  |    String value();
  | 

DescribeAction
  | {
  | 
  | public static final String BASIC = "org...blah..AbstractDependencyBuilder";
  | 
  | public static final String AOP = "org.blah.AOPDependencyBuilder";



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

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



More information about the jboss-dev-forums mailing list