public class SimpleCallableJavaComponent extends AbstractJavaComponent
JavaComponent implementation to be used when LifecycleAdapter is not required because i) the object
instance implements Callable and so entry-point resolution is required and ii) component bindings are not used.ObjectFactory can be set but must return object instances that implement Callable. If one of the
constructors that takes just a Class or the instance itself is used then the SingletonObjectFactory is used by default.
OptimizedComponent/OptimizedMuleProxyAbstractComponent.AnnotatedProcessorReactiveProcessor.ProcessingTypeentryPointResolverSet, lifecycleAdapterFactory, objectFactoryflowConstruct, interceptorChain, interceptors, lifecycleManager, logger, muleContext, notificationHandler, statistics| Constructor and Description |
|---|
SimpleCallableJavaComponent() |
SimpleCallableJavaComponent(Callable callable)
Create an SimpleCallableJavaComponent instance using an object instance that implements
Callable |
SimpleCallableJavaComponent(Class callable)
Create an SimpleCallableJavaComponent instance using an object class.
|
SimpleCallableJavaComponent(ObjectFactory objectFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected LifecycleAdapter |
borrowComponentLifecycleAdaptor() |
protected void |
doDispose() |
protected void |
doStart() |
protected void |
doStop() |
Class |
getObjectType() |
protected Object |
invokeComponentInstance(Event event,
Event.Builder eventBuilder) |
protected void |
returnComponentLifecycleAdaptor(LifecycleAdapter lifecycleAdapter) |
void |
setObjectFactory(ObjectFactory objectFactory)
The object factory used to obtain the component object instance.
|
createLifecycleAdaptor, doInitialise, doInvoke, getEntryPointResolverSet, getLifecycleAdapterFactory, getObjectFactory, injectService, setEntryPointResolvers, setEntryPointResolverSet, setFlowConstruct, setLifecycleAdapterFactoryapplyLifecycleAndDependencyInjection, createResultEvent, dispose, 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, getStatisticspublic SimpleCallableJavaComponent()
public SimpleCallableJavaComponent(Callable callable)
Callablecallable - public SimpleCallableJavaComponent(Class callable) throws DefaultMuleException
Callable.callable - DefaultMuleException - if the Class specified does not implement Callablepublic SimpleCallableJavaComponent(ObjectFactory objectFactory) throws DefaultMuleException
DefaultMuleExceptionprotected void doStart()
throws org.mule.runtime.api.exception.MuleException
doStart in class AbstractJavaComponentorg.mule.runtime.api.exception.MuleExceptionprotected void doStop()
throws org.mule.runtime.api.exception.MuleException
doStop in class AbstractComponentorg.mule.runtime.api.exception.MuleExceptionprotected void doDispose()
doDispose in class AbstractJavaComponentpublic Class getObjectType()
getObjectType in interface JavaComponentgetObjectType in class AbstractJavaComponentprotected LifecycleAdapter borrowComponentLifecycleAdaptor() throws Exception
borrowComponentLifecycleAdaptor in class AbstractJavaComponentExceptionprotected void returnComponentLifecycleAdaptor(LifecycleAdapter lifecycleAdapter)
returnComponentLifecycleAdaptor in class AbstractJavaComponentprotected Object invokeComponentInstance(Event event, Event.Builder eventBuilder) throws Exception
invokeComponentInstance in class AbstractJavaComponentExceptionpublic 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 JavaComponentsetObjectFactory in class AbstractJavaComponentCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.