Package jakarta.ejb
Annotation Type DependsOn
-
@Target(TYPE) @Retention(RUNTIME) public @interface DependsOn
Used to express an initialization dependency between singleton components.The container ensures that all singleton beans with which a singleton has a
DependsOnrelationship have been initialized before the singleton'sPostConstructmethod is called.During application shutdown the container ensures that all singleton beans on with which the singleton has a
DependsOnrelationship are still available during the singleton'sPreDestroymethod.- Since:
- EJB 3.1
-
-
Element Detail
-
value
String[] value
The ejb-names of singleton components whose initialization must occur before this singleton. The order in which these names are listed is not significant.
-
-