org.jvnet.hk2.component
Interface RunLevelState<T>

All Known Implementing Classes:
DefaultRunLevelService

public interface RunLevelState<T>

Holds the state(s) for a particular RunLevelService.

Author:
Jeff Trent

Method Summary
 Integer getCurrentRunLevel()
          The current run level state.
 Integer getPlannedRunLevel()
          The planned run level state.
 String getScopeName()
          The scope value for this state.
 

Method Detail

getScopeName

String getScopeName()
The scope value for this state.

Returns:
the class type name used to uniquely identify the scope in context.

getCurrentRunLevel

Integer getCurrentRunLevel()
The current run level state. This represents the last run level successfully achieved by the underlying RunLevelService responsible for this scope.

Returns:
the current run level, or null if no run level has been been achieved.

getPlannedRunLevel

Integer getPlannedRunLevel()
The planned run level state. If this value is different from current run level, this signifies movement of the underlying RunLevelService.

Returns:
the planned run level, or null if there is no planned level. This value is established by a call to RunLevelService.proceedTo(int).


Copyright © 2011 Oracle Corporation. All Rights Reserved.