"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#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...