public class SpringBeanLookup extends AbstractObjectFactory implements org.springframework.context.ApplicationContextAware
ATTRIBUTE_OBJECT_CLASS, ATTRIBUTE_OBJECT_CLASS_NAME, initialisationCallbacks, logger, objectClass, objectClassName, propertiesPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
SpringBeanLookup() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
String |
getBean() |
Object |
getInstance()
Creates an initialized object instance based on the class and sets any properties.
|
Class |
getObjectClass()
Returns the class of the object to be instantiated without actually creating
an instance.
|
void |
initialise()
Method used to perform any initialisation work.
|
boolean |
isSingleton()
Returns true if the ObjectFactory implementation always returns the same object
instance.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setBean(String bean) |
addObjectInitialisationCallback, fireInitialisationCallbacks, getObjectClassName, getProperties, setObjectClass, setObjectClassName, setPropertiespublic void initialise()
throws InitialisationException
InitialisableInitialisationException should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise in interface Initialisableinitialise in class AbstractObjectFactoryInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered frompublic void dispose()
Disposabledispose in interface Disposabledispose in class AbstractObjectFactorypublic Class getObjectClass()
ObjectFactorygetObjectClass in interface ObjectFactorygetObjectClass in class AbstractObjectFactorypublic Object getInstance() throws Exception
AbstractObjectFactorygetInstance in interface ObjectFactorygetInstance in class AbstractObjectFactoryExceptionpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic String getBean()
public void setBean(String bean)
public boolean isSingleton()
ObjectFactoryisSingleton in interface ObjectFactoryisSingleton in class AbstractObjectFactoryCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.