|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xbean.kernel.AbstractServiceFactory
public abstract class AbstractServiceFactory
AbstractServiceFactory is an implementation of ServiceFactory that handles all of the mundane issues.
| Constructor Summary | |
|---|---|
AbstractServiceFactory()
|
|
| Method Summary | |
|---|---|
void |
addStartCondition(ServiceCondition startCondition)
Adds start condition to this service. |
void |
addStopCondition(ServiceCondition stopCondition)
Adds stop condition to this service. |
Set |
getStartConditions()
Get an unmodifable snapshot of the conditions that must be satisfied before this service can be started. |
Set |
getStopConditions()
Get an unmodifable snapshot of the conditions that must be satisfied before this service can be stopped. |
boolean |
isEnabled()
Determines if the service can be instantiated in a kernel. |
void |
removeStartCondition(ServiceCondition startCondition)
Removes a start condition from this service. |
void |
removeStopCondition(ServiceCondition stopCondition)
Removes a stop condition from this service. |
void |
setEnabled(boolean enabled)
Sets the enabled status of this service factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.xbean.kernel.ServiceFactory |
|---|
createService, destroyService, getClassLoader, getOwnedServices, getTypes, isRestartable |
| Constructor Detail |
|---|
public AbstractServiceFactory()
| Method Detail |
|---|
public boolean isEnabled()
isEnabled in interface ServiceFactorypublic void setEnabled(boolean enabled)
setEnabled in interface ServiceFactoryenabled - the new enabled state of this factorypublic Set getStartConditions()
getStartConditions in interface ServiceFactory
public void addStartCondition(ServiceCondition startCondition)
throws NullPointerException
addStartCondition in interface ServiceFactorystartCondition - the new start condition
NullPointerException - if startCondition is null
public void removeStartCondition(ServiceCondition startCondition)
throws NullPointerException
removeStartCondition in interface ServiceFactorystartCondition - the start condition to remove
NullPointerException - if startCondition is nullpublic Set getStopConditions()
getStopConditions in interface ServiceFactory
public void addStopCondition(ServiceCondition stopCondition)
throws NullPointerException
addStopCondition in interface ServiceFactorystopCondition - the new stop condition
NullPointerException - if stopCondition is null
public void removeStopCondition(ServiceCondition stopCondition)
throws NullPointerException
removeStopCondition in interface ServiceFactorystopCondition - the stop condition to remove
NullPointerException - if stopCondition is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||