|
||||||||||
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 Object |
componentObject
|
protected static Log |
logger
logger used by this class |
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)
|
|
DefaultLifecycleAdapter(Object componentObject,
JavaComponent component,
EntryPointResolverSet entryPointResolver)
|
Method Summary | |
---|---|
protected void |
configureNestedRouter()
|
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. |
MuleMessage |
intercept(Invocation invocation)
Invoked when the component should be called. |
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 Object componentObject
protected JavaComponent component
Constructor Detail |
---|
public DefaultLifecycleAdapter(Object componentObject, JavaComponent component) throws MuleException
MuleException
public DefaultLifecycleAdapter(Object componentObject, JavaComponent component, EntryPointResolverSet entryPointResolver) 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 MuleMessage intercept(Invocation invocation) throws MuleException
Interceptor
Invocation.execute()
to call the component.
intercept
in interface Interceptor
invocation
- the invocation containing info about the current message and
service
MuleException
- if the invocation failspublic 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 configureNestedRouter() throws MuleException
MuleException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |