org.jvnet.hk2.annotations
Annotation Type RunLevel


@Retention(value=RUNTIME)
@Target(value={TYPE,ANNOTATION_TYPE})
@Documented
@Contract
public @interface RunLevel

Defines the notion of a run level ˆ la Unix.

Author:
Jerome Dochez

Optional Element Summary
 java.lang.Class<?> environment
          Defines the environment in which this RunLevel applies An Environment is any type used to segregate the application of the run level annotation.
 int value
          defines the run level, must be greater than 0
 

environment

public abstract java.lang.Class<?> environment
Defines the environment in which this RunLevel applies An Environment is any type used to segregate the application of the run level annotation. A null environment is considered a valid value and will be used as the default value.

Returns:
the environment type this annotation value applies in.
Default:
java.lang.Void.class

value

public abstract int value
defines the run level, must be greater than 0

Returns:
the run level.
Default:
0


Copyright © 2010 Sun Microsystems, Inc.. All Rights Reserved.