public interface Component extends Lifecycle
Component is a invoked by a Service for each incoming
MuleEvent routed on by the InboundRouterCollection. A component
processes a MuleEvent by invoking the component instance that has been
configured, optionally returning a result. Implementations of
Component can use different types of component implementation,
implement component instance pooling or implement bindings which allow
for service composition.PHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| Modifier and Type | Method and Description |
|---|---|
Service |
getService() |
ComponentStatistics |
getStatistics()
Component statistics are used to gather component statistics such as
sync/async invocation counts and total and average execution time.
|
MuleMessage |
onCall(MuleEvent event)
Invokes the component
|
void |
setService(Service service) |
initialisedisposeMuleMessage onCall(MuleEvent event) throws MuleException
event - the event used to invoke the componentMuleException - if the call failsComponentStatistics getStatistics()
void setService(Service service)
service - Service getService()
Copyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.