|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.component.DefaultLifecycleAdapter
public class DefaultLifecycleAdapter
DefaultLifecycleAdapter
provides lifecycle methods for all Mule
managed components. It's possible to plugin custom lifecycle adapters, this can
provide additional lifecycle methods triggered by an external source.
Field Summary | |
---|---|
protected JavaComponent |
component
|
protected SoftReference<?> |
componentObject
|
protected EntryPointResolverSet |
entryPointResolver
|
protected static Log |
logger
logger used by this class |
protected MuleContext |
muleContext
|
Fields inherited from interface org.mule.api.lifecycle.Initialisable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Startable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Stoppable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Disposable |
---|
PHASE_NAME |
Constructor Summary | |
---|---|
DefaultLifecycleAdapter(Object componentObject,
JavaComponent component,
EntryPointResolverSet entryPointResolver,
MuleContext muleContext)
|
|
DefaultLifecycleAdapter(Object componentObject,
JavaComponent component,
MuleContext muleContext)
|
Method Summary | |
---|---|
protected void |
configureBinding()
|
protected String |
createRegistryHardRefName(Object object)
Generate a registry key name for this component. |
void |
dispose()
Propagates dispose() life-cycle to component object implementations if they implement the mule Disposable interface. |
void |
initialise()
Propagates initialise() life-cycle to component object implementations if they implement the mule Initialisable interface. |
Object |
invoke(MuleEvent event)
|
boolean |
isDisposed()
|
boolean |
isStarted()
|
void |
start()
Propagates start() life-cycle to component object implementations if they implement the mule Startable interface. |
void |
stop()
Propagates stop() life-cycle to component object implementations if they implement the mule Stoppable interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Log logger
protected SoftReference<?> componentObject
protected JavaComponent component
protected EntryPointResolverSet entryPointResolver
protected MuleContext muleContext
Constructor Detail |
---|
public DefaultLifecycleAdapter(Object componentObject, JavaComponent component, MuleContext muleContext) throws MuleException
MuleException
public DefaultLifecycleAdapter(Object componentObject, JavaComponent component, EntryPointResolverSet entryPointResolver, MuleContext muleContext) throws MuleException
MuleException
Method Detail |
---|
public void start() throws MuleException
Startable
interface. NOT: It is up to component
implementations to ensure their implementation of start() is thread-safe.
start
in interface Startable
MuleException
public void stop() throws MuleException
Stoppable
interface. NOT: It is up to component
implementations to ensure their implementation of stop() is thread-safe.
stop
in interface Stoppable
MuleException
public void dispose()
Disposable
interface. NOT: It is up to component
implementations to ensure their implementation of dispose() is thread-safe.
dispose
in interface Disposable
public boolean isStarted()
isStarted
in interface LifecycleAdapter
public boolean isDisposed()
isDisposed
in interface LifecycleAdapter
public Object invoke(MuleEvent event) throws MuleException
invoke
in interface LifecycleAdapter
MuleException
public void initialise() throws InitialisationException
Initialisable
interface.
NOTE: It is up to component implementations to ensure their implementation of
initialise()
is thread-safe.
initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdown
RecoverableException
- if an error occurs that can be recovered fromprotected void configureBinding() throws MuleException
MuleException
protected String createRegistryHardRefName(Object object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |