|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.component.AbstractComponent
org.mule.component.AbstractJavaComponent
public abstract class AbstractJavaComponent
Abstract implementation of JavaComponent adds JavaComponent specific's:
EntryPointResolverSet
, org.mule.api.routing.BindingCollection
and
ObjectFactory
. Provides default implementations of doOnCall and doOnEvent
and defines abstract template methods provided for obtaining and returning the
component object instance.
Field Summary | |
---|---|
protected java.util.List<InterfaceBinding> |
bindings
|
protected EntryPointResolverSet |
entryPointResolverSet
|
protected LifecycleAdapterFactory |
lifecycleAdapterFactory
|
protected ObjectFactory |
objectFactory
|
Fields inherited from class org.mule.component.AbstractComponent |
---|
flowConstruct, interceptorChain, interceptors, logger, muleContext, notificationHandler, statistics |
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 | |
---|---|
AbstractJavaComponent()
For Spring only |
|
AbstractJavaComponent(ObjectFactory objectFactory)
|
|
AbstractJavaComponent(ObjectFactory objectFactory,
EntryPointResolverSet entryPointResolverSet,
java.util.List<InterfaceBinding> bindings)
|
Method Summary | |
---|---|
protected abstract LifecycleAdapter |
borrowComponentLifecycleAdaptor()
|
protected LifecycleAdapter |
createLifecycleAdaptor()
Creates and initialises a new LifecycleAdaptor instance wrapped the component object instance obtained from the configured object factory. |
protected void |
doDispose()
|
protected void |
doInitialise()
|
protected java.lang.Object |
doInvoke(MuleEvent event)
|
protected void |
doStart()
|
EntryPointResolverSet |
getEntryPointResolverSet()
A JavaComponent can have a custom entry-point resolver for its own
object. |
java.util.List<InterfaceBinding> |
getInterfaceBindings()
|
LifecycleAdapterFactory |
getLifecycleAdapterFactory()
Returns the factory used create life-cycle adaptors that are used to wrap component instance. |
ObjectFactory |
getObjectFactory()
|
java.lang.Class<?> |
getObjectType()
|
protected void |
injectService()
|
protected java.lang.Object |
invokeComponentInstance(MuleEvent event)
|
protected abstract void |
returnComponentLifecycleAdaptor(LifecycleAdapter lifecycleAdapter)
|
void |
setEntryPointResolvers(java.util.Collection<EntryPointResolver> entryPointResolvers)
Allow for incremental addition of resolvers by for example the spring-config module |
void |
setEntryPointResolverSet(EntryPointResolverSet entryPointResolverSet)
A JavaComponent can have a custom entry-point resolver for its own
object. |
void |
setFlowConstruct(FlowConstruct flowConstruct)
|
void |
setInterfaceBindings(java.util.List<InterfaceBinding> bindings)
|
void |
setLifecycleAdapterFactory(LifecycleAdapterFactory lifecycleAdapterFactory)
Sets the factory used create life-cycle adaptors that are used to wrap component instance. |
void |
setObjectFactory(ObjectFactory objectFactory)
The object factory used to obtain the component object instance. |
Methods inherited from class org.mule.component.AbstractComponent |
---|
createResultEvent, dispose, doStop, fireComponentNotification, getFlowConstruct, getInterceptors, getStatistics, initialise, process, release, setInterceptors, setMuleContext, start, stop, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.mule.api.component.Component |
---|
getStatistics |
Methods inherited from interface org.mule.api.processor.MessageProcessor |
---|
process |
Field Detail |
---|
protected EntryPointResolverSet entryPointResolverSet
protected java.util.List<InterfaceBinding> bindings
protected ObjectFactory objectFactory
protected LifecycleAdapterFactory lifecycleAdapterFactory
Constructor Detail |
---|
public AbstractJavaComponent()
public AbstractJavaComponent(ObjectFactory objectFactory)
public AbstractJavaComponent(ObjectFactory objectFactory, EntryPointResolverSet entryPointResolverSet, java.util.List<InterfaceBinding> bindings)
Method Detail |
---|
protected java.lang.Object doInvoke(MuleEvent event) throws java.lang.Exception
doInvoke
in class AbstractComponent
java.lang.Exception
protected java.lang.Object invokeComponentInstance(MuleEvent event) throws java.lang.Exception
java.lang.Exception
public java.lang.Class<?> getObjectType()
getObjectType
in interface JavaComponent
protected LifecycleAdapter createLifecycleAdaptor() throws java.lang.Exception
MuleException
java.lang.Exception
protected abstract LifecycleAdapter borrowComponentLifecycleAdaptor() throws java.lang.Exception
java.lang.Exception
protected abstract void returnComponentLifecycleAdaptor(LifecycleAdapter lifecycleAdapter) throws java.lang.Exception
java.lang.Exception
protected void doInitialise() throws InitialisationException
doInitialise
in class AbstractComponent
InitialisationException
protected void doStart() throws MuleException
doStart
in class AbstractComponent
MuleException
protected void doDispose()
doDispose
in class AbstractComponent
public EntryPointResolverSet getEntryPointResolverSet()
JavaComponent
JavaComponent
can have a custom entry-point resolver for its own
object. By default this is null. When set this resolver will override the
resolver on the model
getEntryPointResolverSet
in interface JavaComponent
public java.util.List<InterfaceBinding> getInterfaceBindings()
getInterfaceBindings
in interface JavaComponent
public void setEntryPointResolverSet(EntryPointResolverSet entryPointResolverSet)
JavaComponent
JavaComponent
can have a custom entry-point resolver for its own
object. By default this is null. When set this resolver will override the
resolver on the model
setEntryPointResolverSet
in interface JavaComponent
public void setInterfaceBindings(java.util.List<InterfaceBinding> bindings)
setInterfaceBindings
in interface JavaComponent
public void setEntryPointResolvers(java.util.Collection<EntryPointResolver> entryPointResolvers)
entryPointResolvers
- Resolvers to addpublic ObjectFactory getObjectFactory()
getObjectFactory
in interface JavaComponent
public void setObjectFactory(ObjectFactory objectFactory)
JavaComponent
SingletonObjectFactory
and
PrototypeObjectFactory
.ObjectFactory
implementation that delegates to spring. There is no
PooledObjectFactory, the PooledJavaComponent
should be used for
pooling.
setObjectFactory
in interface JavaComponent
public LifecycleAdapterFactory getLifecycleAdapterFactory()
JavaComponent
getLifecycleAdapterFactory
in interface JavaComponent
public void setLifecycleAdapterFactory(LifecycleAdapterFactory lifecycleAdapterFactory)
JavaComponent
setLifecycleAdapterFactory
in interface JavaComponent
public void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct
in interface FlowConstructAware
setFlowConstruct
in class AbstractComponent
protected void injectService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |