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 a la Unix.

Author:
Jerome Dochez, Jeff Trent

Optional Element Summary
 java.lang.Class<?> environment
          Defines the environment in which this RunLevel applies.
 int value
          defines the run level, must be greater than 0
 

environment

@InhabitantMetadata(value="env")
public abstract java.lang.Class<?> environment
Defines the environment in which this RunLevel applies.

An Environment is any type used to segregate the application / system namespace.

A null environment is considered a valid value and will be used as the default value mapping to Void.class.

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

value

@InhabitantMetadata(value="runLevel")
public abstract int value
defines the run level, must be greater than 0

Returns:
the run level.
Default:
0


Copyright © 2011 Oracle Corporation. All Rights Reserved.