javax.ejb
Annotation Type DependsOn


@Target(value=TYPE)
@Retention(value=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 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

Required Element Summary
 java.lang.String[] value
          The ejb-names of singleton components whose initialization must occur before this singleton.
 

Element Detail

value

public abstract java.lang.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.



Submit a bug or feature

Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 10-February-2011 12:41

Scripting on this page tracks web page traffic, but does not change the content in any way.