org.jvnet.hk2.annotations
Annotation Type RunLevel


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

Defines the notion of a run/start level.

Author:
Jerome Dochez, Jeff Trent

Optional Element Summary
 Class<?> runLevelScope
          Defines the run level scope in which this RunLevel applies.
 int value
          Defines the run level.
 

runLevelScope

@InhabitantMetadata(value="runLevelScope")
public abstract Class<?> runLevelScope
Defines the run level scope in which this RunLevel applies.

The run level scope is any type used to segregate the application / system namespace.

Returns:
the run level scope type this annotation value applies
Default:
org.glassfish.hk2.RunLevelDefaultScope.class

value

@InhabitantMetadata(value="runLevel")
public abstract int value
Defines the run level.

Returns:
the run level
Default:
0


Copyright © 2011 Oracle Corporation. All Rights Reserved.