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, statisticsPHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAMEPROPERTY_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, toStringgetAnnotation, getAnnotations, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetStatisticsprocessprotected 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 AbstractComponentExceptionprotected Object invokeComponentInstance(MuleEvent event) throws Exception
Exceptionpublic Class<?> getObjectType()
getObjectType in interface JavaComponentprotected LifecycleAdapter createLifecycleAdaptor() throws Exception
MuleExceptionExceptionprotected abstract LifecycleAdapter borrowComponentLifecycleAdaptor() throws Exception
Exceptionprotected abstract void returnComponentLifecycleAdaptor(LifecycleAdapter lifecycleAdapter) throws Exception
Exceptionprotected void doInitialise()
throws InitialisationException
doInitialise in class AbstractComponentInitialisationExceptionprotected void doStart()
throws MuleException
doStart in class AbstractComponentMuleExceptionprotected void doDispose()
doDispose in class AbstractComponentpublic EntryPointResolverSet getEntryPointResolverSet()
JavaComponentJavaComponent 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 JavaComponentpublic List<InterfaceBinding> getInterfaceBindings()
getInterfaceBindings in interface JavaComponentpublic void setEntryPointResolverSet(EntryPointResolverSet entryPointResolverSet)
JavaComponentJavaComponent 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 JavaComponentpublic void setInterfaceBindings(List<InterfaceBinding> bindings)
setInterfaceBindings in interface JavaComponentpublic void setEntryPointResolvers(Collection<EntryPointResolver> entryPointResolvers)
entryPointResolvers - Resolvers to addpublic ObjectFactory getObjectFactory()
getObjectFactory in interface JavaComponentpublic void setObjectFactory(ObjectFactory objectFactory)
JavaComponentSingletonObjectFactory and
PrototypeObjectFactory.ObjectFactory implementation that delegates to spring. There is no
PooledObjectFactory, the PooledJavaComponent should be used for
pooling.setObjectFactory in interface JavaComponentpublic LifecycleAdapterFactory getLifecycleAdapterFactory()
JavaComponentgetLifecycleAdapterFactory in interface JavaComponentpublic void setLifecycleAdapterFactory(LifecycleAdapterFactory lifecycleAdapterFactory)
JavaComponentsetLifecycleAdapterFactory in interface JavaComponentpublic void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct in interface FlowConstructAwaresetFlowConstruct in class AbstractComponentprotected void injectService()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.