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/OptimizedMuleProxybindings, entryPointResolverSet, lifecycleAdapterFactory, objectFactoryflowConstruct, interceptorChain, interceptors, lifecycleManager, logger, muleContext, notificationHandler, statisticsPHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAMEPROPERTY_NAME| 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(MuleEvent event) |
protected void |
returnComponentLifecycleAdaptor(LifecycleAdapter lifecycleAdapter) |
void |
setObjectFactory(ObjectFactory objectFactory)
The object factory used to obtain the component object instance.
|
createLifecycleAdaptor, doInitialise, doInvoke, getEntryPointResolverSet, getInterfaceBindings, getLifecycleAdapterFactory, getObjectFactory, injectService, setEntryPointResolvers, setEntryPointResolverSet, setFlowConstruct, setInterfaceBindings, setLifecycleAdapterFactoryapplyLifecycleAndDependencyInjection, createResultEvent, dispose, fireComponentNotification, getFlowConstruct, getInterceptors, getName, getStatistics, initialise, process, release, setInterceptors, setMessagingExceptionHandler, setMuleContext, start, stop, toStringgetAnnotation, getAnnotations, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetStatisticsprocesspublic 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 MuleException
doStart in class AbstractJavaComponentMuleExceptionprotected void doStop()
throws MuleException
doStop in class AbstractComponentMuleExceptionprotected 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(MuleEvent event) 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–2015 MuleSoft, Inc.. All rights reserved.