public abstract class AbstractJavaComponent extends AbstractComponent implements JavaComponent
EntryPointResolverSet
and ObjectFactory
.Modifier and Type | Field and Description |
---|---|
protected List<InterfaceBinding> |
bindings |
protected EntryPointResolverSet |
entryPointResolverSet |
protected LifecycleAdapterFactory |
lifecycleAdapterFactory |
protected ObjectFactory |
objectFactory |
flowConstruct, interceptorChain, interceptors, lifecycleManager, logger, muleContext, notificationHandler, statistics
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
PROPERTY_NAME
Constructor and Description |
---|
AbstractJavaComponent()
For Spring only
|
AbstractJavaComponent(ObjectFactory objectFactory) |
AbstractJavaComponent(ObjectFactory objectFactory,
EntryPointResolverSet entryPointResolverSet,
List<InterfaceBinding> bindings) |
Modifier and Type | Method and Description |
---|---|
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 Object |
doInvoke(MuleEvent event) |
protected void |
doStart() |
EntryPointResolverSet |
getEntryPointResolverSet()
A
JavaComponent can have a custom entry-point resolver for its own
object. |
List<InterfaceBinding> |
getInterfaceBindings() |
LifecycleAdapterFactory |
getLifecycleAdapterFactory()
Returns the factory used create life-cycle adaptors that are used to wrap
component instance.
|
ObjectFactory |
getObjectFactory() |
Class<?> |
getObjectType() |
protected void |
injectService() |
protected Object |
invokeComponentInstance(MuleEvent event) |
protected abstract void |
returnComponentLifecycleAdaptor(LifecycleAdapter lifecycleAdapter) |
void |
setEntryPointResolvers(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(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.
|
applyLifecycleAndDependencyInjection, createResultEvent, dispose, doStop, fireComponentNotification, getFlowConstruct, getInterceptors, getName, getStatistics, initialise, process, release, setInterceptors, setMessagingExceptionHandler, setMuleContext, start, stop, toString
getAnnotation, getAnnotations, setAnnotations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getStatistics
process
protected EntryPointResolverSet entryPointResolverSet
protected List<InterfaceBinding> bindings
protected ObjectFactory objectFactory
protected LifecycleAdapterFactory lifecycleAdapterFactory
public AbstractJavaComponent()
public AbstractJavaComponent(ObjectFactory objectFactory)
public AbstractJavaComponent(ObjectFactory objectFactory, EntryPointResolverSet entryPointResolverSet, List<InterfaceBinding> bindings)
protected Object doInvoke(MuleEvent event) throws Exception
doInvoke
in class AbstractComponent
Exception
protected Object invokeComponentInstance(MuleEvent event) throws Exception
Exception
public Class<?> getObjectType()
getObjectType
in interface JavaComponent
protected LifecycleAdapter createLifecycleAdaptor() throws Exception
MuleException
Exception
protected abstract LifecycleAdapter borrowComponentLifecycleAdaptor() throws Exception
Exception
protected abstract void returnComponentLifecycleAdaptor(LifecycleAdapter lifecycleAdapter) throws Exception
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 modelgetEntryPointResolverSet
in interface JavaComponent
public 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 modelsetEntryPointResolverSet
in interface JavaComponent
public void setInterfaceBindings(List<InterfaceBinding> bindings)
setInterfaceBindings
in interface JavaComponent
public void setEntryPointResolvers(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()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.