org.apache.felix.dm.impl
Class State
java.lang.Object
org.apache.felix.dm.impl.State
public final class State
- extends Object
Encapsulates the current state of the dependencies of a service. A state is
basically an immutable value object.
- Author:
- Felix Project Team
Constructor Summary |
State(List deps,
boolean isActive,
boolean isInstantiated,
boolean isBound)
Creates a new state instance. |
State
public State(List deps,
boolean isActive,
boolean isInstantiated,
boolean isBound)
- Creates a new state instance.
- Parameters:
deps
- the dependencies that determine the stateisActive
- true
if the service is active (started)
isInactive
public boolean isInactive()
isWaitingForRequired
public boolean isWaitingForRequired()
isTrackingOptional
public boolean isTrackingOptional()
isBound
public boolean isBound()
isAllRequiredAvailable
public boolean isAllRequiredAvailable()
isWaitingForRequiredInstantiated
public boolean isWaitingForRequiredInstantiated()
getDependencies
public List getDependencies()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011 Apache Software Foundation. All Rights Reserved.