T - public class ConstantFactoryBean<T>
extends org.mule.runtime.api.component.AbstractComponent
implements org.springframework.beans.factory.FactoryBean<T>
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 |
|---|---|
T |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setMuleContext(MuleContext muleContext) |
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)
Copyright © 2003–2020 MuleSoft, Inc.. All rights reserved.