org.apache.servicemix.jbi.deployer.artifacts
Class AbstractLifecycleJbiArtifact
java.lang.Object
org.apache.servicemix.jbi.deployer.artifacts.AbstractLifecycleJbiArtifact
- All Implemented Interfaces:
- javax.jbi.management.LifeCycleMBean
- Direct Known Subclasses:
- ComponentImpl, ServiceAssemblyImpl
public abstract class AbstractLifecycleJbiArtifact
- extends java.lang.Object
- implements javax.jbi.management.LifeCycleMBean
| Fields inherited from interface javax.jbi.management.LifeCycleMBean |
SHUTDOWN, STARTED, STOPPED, UNKNOWN |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.jbi.management.LifeCycleMBean |
shutDown, start, stop |
STATE
public static final java.lang.String STATE
- See Also:
- Constant Field Values
LOGGER
protected final org.apache.commons.logging.Log LOGGER
state
protected AbstractLifecycleJbiArtifact.State state
prefs
protected org.osgi.service.prefs.Preferences prefs
runningState
protected AbstractLifecycleJbiArtifact.State runningState
listenerRegistry
protected ListenerRegistry listenerRegistry
AbstractLifecycleJbiArtifact
public AbstractLifecycleJbiArtifact()
getState
public AbstractLifecycleJbiArtifact.State getState()
getRunningState
public AbstractLifecycleJbiArtifact.State getRunningState()
getListenerRegistry
public ListenerRegistry getListenerRegistry()
setListenerRegistry
public void setListenerRegistry(ListenerRegistry listenerRegistry)
getCurrentState
public java.lang.String getCurrentState()
- Specified by:
getCurrentState in interface javax.jbi.management.LifeCycleMBean
loadState
protected AbstractLifecycleJbiArtifact.State loadState(AbstractLifecycleJbiArtifact.State def)
saveState
protected void saveState()
fireEvent
protected void fireEvent(LifeCycleEvent.LifeCycleEventType type)
throws javax.jbi.JBIException
- Throws:
javax.jbi.JBIException
fireEvent
protected void fireEvent(LifeCycleEvent.LifeCycleEventType type,
boolean force)
throws javax.jbi.JBIException
- Throws:
javax.jbi.JBIException
Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.