interface Dependency extends Value<java.lang.Object>
AbstractDependent.Dependent| Modifier and Type | Method and Description |
|---|---|
void |
addDemand()
Notify that a
dependent entered active mode. |
void |
addDependent(Dependent dependent)
Add a dependent to this dependency, establishing the dependency relation between this dependency and its
dependent.
|
void |
dependentStarted()
Notify that a
dependent is starting. |
void |
dependentStopped()
Notify that a
dependent is stopping. |
ServiceControllerImpl<?> |
getDependencyController()
Get the controller for this dependency, or
null if there is none currently. |
ServiceName |
getName()
Get the name of this dependency.
|
java.lang.Object |
getValue()
Get the installed instance value, if any exists.
|
void |
removeDemand()
Notify that a
dependent left active mode. |
void |
removeDependent(Dependent dependent)
Remove a dependent from this dependency, breaking the dependency relation between this dependency and its
dependent.
|
void addDependent(Dependent dependent)
dependent - the dependent to addvoid removeDependent(Dependent dependent)
dependent - the dependent to removevoid addDemand()
dependent entered active mode.
This method must not be called under a lock.void removeDemand()
dependent left active mode.
This method must not be called under a lock.void dependentStarted()
dependent is starting.
This method must not be called under a lock.void dependentStopped()
dependent is stopping.
This method must not be called under a lock.java.lang.Object getValue()
throws java.lang.IllegalStateException
ServiceName getName()
ServiceControllerImpl<?> getDependencyController()
null if there is none currently.null for none