org.apache.servicemix.jbi.deployer.artifacts
Class AbstractLifecycleJbiArtifact

java.lang.Object
  extended by org.apache.servicemix.jbi.deployer.artifacts.AbstractLifecycleJbiArtifact
All Implemented Interfaces:
javax.jbi.management.LifeCycleMBean
Direct Known Subclasses:
ComponentImpl, ServiceAssemblyImpl

public abstract class AbstractLifecycleJbiArtifact
extends Object
implements javax.jbi.management.LifeCycleMBean


Nested Class Summary
static class AbstractLifecycleJbiArtifact.State
           
 
Field Summary
protected  org.apache.servicemix.nmr.api.event.ListenerRegistry listenerRegistry
           
protected  org.slf4j.Logger logger
           
protected  AbstractLifecycleJbiArtifact.State runningState
           
protected  AbstractLifecycleJbiArtifact.State state
           
static String STATE
           
protected  Storage storage
           
 
Fields inherited from interface javax.jbi.management.LifeCycleMBean
SHUTDOWN, STARTED, STOPPED, UNKNOWN
 
Constructor Summary
AbstractLifecycleJbiArtifact()
           
 
Method Summary
protected  void fireEvent(LifeCycleEvent.LifeCycleEventType type)
           
protected  void fireEvent(LifeCycleEvent.LifeCycleEventType type, boolean force)
           
 String getCurrentState()
           
 org.apache.servicemix.nmr.api.event.ListenerRegistry getListenerRegistry()
           
 AbstractLifecycleJbiArtifact.State getRunningState()
           
 AbstractLifecycleJbiArtifact.State getState()
           
protected  AbstractLifecycleJbiArtifact.State loadState(AbstractLifecycleJbiArtifact.State def)
           
protected  void saveState()
           
 void setListenerRegistry(org.apache.servicemix.nmr.api.event.ListenerRegistry listenerRegistry)
           
 
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
 

Field Detail

STATE

public static final String STATE
See Also:
Constant Field Values

logger

protected final org.slf4j.Logger logger

state

protected AbstractLifecycleJbiArtifact.State state

storage

protected Storage storage

runningState

protected AbstractLifecycleJbiArtifact.State runningState

listenerRegistry

protected org.apache.servicemix.nmr.api.event.ListenerRegistry listenerRegistry
Constructor Detail

AbstractLifecycleJbiArtifact

public AbstractLifecycleJbiArtifact()
Method Detail

getState

public AbstractLifecycleJbiArtifact.State getState()

getRunningState

public AbstractLifecycleJbiArtifact.State getRunningState()

getListenerRegistry

public org.apache.servicemix.nmr.api.event.ListenerRegistry getListenerRegistry()

setListenerRegistry

public void setListenerRegistry(org.apache.servicemix.nmr.api.event.ListenerRegistry listenerRegistry)

getCurrentState

public 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-2011 The Apache Software Foundation. All Rights Reserved.