T - public class ConstantFactoryBean<T> extends Object implements org.springframework.beans.factory.FactoryBean<T>, MuleContextAware, 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.PHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| 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 context) |
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 context)
setMuleContext in interface MuleContextAwarepublic void initialise()
throws InitialisationException
initialise in interface InitialisableInitialisationExceptionpublic void start()
throws MuleException
start in interface StartableMuleExceptionpublic void stop()
throws MuleException
stop in interface StoppableMuleExceptionpublic void dispose()
dispose in interface DisposableCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.