|
|||||||||||
| 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 UMOComponentUMODescriptor
public void dispatchEvent(UMOEvent event)
throws UMOException
UMOComponent
dispatchEvent in interface UMOComponentevent - the event to consume
UMOException - if the event fails to be processed
public UMOMessage sendEvent(UMOEvent event)
throws UMOException
sendEvent in interface UMOComponentevent -
UMOException
public void pause()
throws UMOException
UMOComponent
pause in interface UMOComponentUMOException
public void resume()
throws UMOException
UMOComponent
resume in interface UMOComponentUMOExceptionpublic boolean isPaused()
UMOComponent
isPaused in interface UMOComponent
public void start()
throws UMOException
start in interface StartableUMOException
public void stop()
throws UMOException
stop in interface StoppableUMOExceptionpublic void dispose()
Disposable
dispose in interface Disposable
public void initialise()
throws InitialisationException,
RecoverableException
InitialisableInitialisationException 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 InitialisableRecoverableException - if an error occurs that can be recovered from
InitialisationException - if a fatal error occurs causing the Mule
instance to shutdown
protected Object getDelegateComponent()
throws InitialisationException
InitialisationExceptionpublic boolean isStarted()
UMOComponent
isStarted in interface UMOComponent
public Object getInstance()
throws UMOException
getInstance in interface UMOComponentUMOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||