public abstract class AbstractJavaComponent extends AbstractComponent implements JavaComponent
EntryPointResolverSet and
ObjectFactory.AbstractComponent.AnnotatedProcessorReactiveProcessor.ProcessingType| Modifier and Type | Field and Description |
|---|---|
protected EntryPointResolverSet |
entryPointResolverSet |
protected LifecycleAdapterFactory |
lifecycleAdapterFactory |
protected ObjectFactory |
objectFactory |
flowConstruct, interceptorChain, interceptors, lifecycleManager, logger, muleContext, notificationHandler, statistics| Constructor and Description |
|---|
AbstractJavaComponent()
For Spring only
|
AbstractJavaComponent(ObjectFactory objectFactory) |
AbstractJavaComponent(ObjectFactory objectFactory,
EntryPointResolverSet entryPointResolverSet) |
| 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(Event event,
Event.Builder eventBuilder) |
protected void |
doStart() |
EntryPointResolverSet |
getEntryPointResolverSet()
A
JavaComponent can have a custom entry-point resolver for its own object. |
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(Event event,
Event.Builder eventBuilder) |
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 |
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, getLocation, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProcessingType, getStatisticsprotected EntryPointResolverSet entryPointResolverSet
protected ObjectFactory objectFactory
protected LifecycleAdapterFactory lifecycleAdapterFactory
public AbstractJavaComponent()
public AbstractJavaComponent(ObjectFactory objectFactory)
public AbstractJavaComponent(ObjectFactory objectFactory, EntryPointResolverSet entryPointResolverSet)
protected Object doInvoke(Event event, Event.Builder eventBuilder) throws Exception
doInvoke in class AbstractComponentExceptionprotected Object invokeComponentInstance(Event event, Event.Builder eventBuilder) throws Exception
Exceptionpublic Class<?> getObjectType()
getObjectType in interface JavaComponentprotected LifecycleAdapter createLifecycleAdaptor() throws Exception
org.mule.runtime.api.exception.MuleExceptionExceptionprotected abstract LifecycleAdapter borrowComponentLifecycleAdaptor() throws Exception
Exceptionprotected abstract void returnComponentLifecycleAdaptor(LifecycleAdapter lifecycleAdapter) throws Exception
Exceptionprotected void doInitialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
doInitialise in class AbstractComponentorg.mule.runtime.api.lifecycle.InitialisationExceptionprotected void doStart()
throws org.mule.runtime.api.exception.MuleException
doStart in class AbstractComponentorg.mule.runtime.api.exception.MuleExceptionprotected 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 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 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–2017 MuleSoft, Inc.. All rights reserved.