T - public class ConstantFactoryBean<T> extends org.mule.runtime.api.meta.AbstractAnnotatedObject implements org.springframework.beans.factory.FactoryBean<T>, MuleContextAware, org.mule.runtime.api.lifecycle.Lifecycle
FactoryBean which returns a fixed instanced obtained through the constructor. isSingleton() always returns
true.
Invocations related to the MuleContextAware and Lifecycle interfaces are delegated into the value
object when applies.| Constructor and Description |
|---|
ConstantFactoryBean(T value) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
T |
getObject() |
Class<?> |
getObjectType() |
void |
initialise() |
boolean |
isSingleton() |
void |
setMuleContext(MuleContext muleContext) |
void |
start() |
void |
stop() |
public ConstantFactoryBean(T value)
public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<T>public Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<T>public void setMuleContext(MuleContext muleContext)
setMuleContext in interface MuleContextAwarepublic void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppableorg.mule.runtime.api.exception.MuleExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.DisposableCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.