Top Description Methods
javax.ejb

public @Interface DependsOn

extends Annotation
Annotations
@Target:TYPE
@Retention:RUNTIME
Imports
java.lang.annotation.Target, .Retention

Used to express an initialization dependency between singleton components.

The container ensures that all singleton beans with which a singleton has a DependsOn relationship have been initialized before the singleton's PostConstruct method is called.

During application shutdown the container ensures that all singleton beans on with which the singleton has a DependsOn relationship are still available during the singleton's PreDestroy method.

Since
EJB 3.1

Method Summary

Modifier and TypeMethod and Description
public String[]
value()

The ejb-names of singleton components whose initialization must occur before this singleton.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public 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.