|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.ra.JcaComponent
JcaComponent
Is the type of component used in Mule when embedded
inside an app server using JCA. In the future we might want to use one of the
existing models.
Constructor Summary | |
JcaComponent(MuleDescriptor descriptor)
|
Method Summary | |
void |
dispatchEvent(UMOEvent event)
Makes an asynhronous event call to the component. |
void |
dispose()
A lifecycle method where implementor should free up any resources. |
protected Object |
getDelegateComponent()
|
UMODescriptor |
getDescriptor()
|
Object |
getInstance()
Gets the underlying instance form this component Where the Component implmentation provides pooling this is no 1-2-1 mapping between UMOComponent and instance, so this method will return the object in initial state. |
void |
initialise()
Method used to perform any initialisation work. |
boolean |
isPaused()
True if the component is in a paused state, false otherwise |
boolean |
isStarted()
Determines whether this component has been started |
void |
pause()
Pauses event processing for a single Mule Component. |
void |
resume()
Resumes a single Mule Component that has been paused. |
UMOMessage |
sendEvent(UMOEvent event)
This is the synchronous call method and not supported by components managed in a JCA container |
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JcaComponent(MuleDescriptor descriptor)
Method Detail |
public UMODescriptor getDescriptor()
getDescriptor
in interface UMOComponent
UMODescriptor
public void dispatchEvent(UMOEvent event) throws UMOException
UMOComponent
dispatchEvent
in interface UMOComponent
event
- the event to consume
UMOException
- if the event fails to be processedpublic UMOMessage sendEvent(UMOEvent event) throws UMOException
sendEvent
in interface UMOComponent
event
-
UMOException
public void pause() throws UMOException
UMOComponent
pause
in interface UMOComponent
UMOException
public void resume() throws UMOException
UMOComponent
resume
in interface UMOComponent
UMOException
public boolean isPaused()
UMOComponent
isPaused
in interface UMOComponent
public void start() throws UMOException
start
in interface Startable
UMOException
public void stop() throws UMOException
stop
in interface Stoppable
UMOException
public void dispose()
Disposable
dispose
in interface Disposable
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.
initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule
instance to shutdownprotected Object getDelegateComponent() throws InitialisationException
InitialisationException
public boolean isStarted()
UMOComponent
isStarted
in interface UMOComponent
public Object getInstance() throws UMOException
getInstance
in interface UMOComponent
UMOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |