jsr345-experts@ejb-spec.java.net

[jsr345-experts] Extension of _at_DependsOn

From: Adam Bien <abien_at_adam-bien.com>
Date: Fri, 9 Sep 2011 13:34:32 +0200

Hi All,

currently the @DependsOn annotation looks like:

@Target(value = {ElementType.TYPE})
@Retention(value = RetentionPolicy.RUNTIME)
public @interface DependsOn {

    public String[] value();
}


I would like to extend it with a class element:

@Target(value = {ElementType.TYPE})
@Retention(value = RetentionPolicy.RUNTIME)
public @interface DependsOn {

    public String[] value();
    *public Class[] classes() default void.class;*
}

It should be possible to specify the dependencies as simple EJB-names as well as referring directly to the classes,

any thoughts?

adam