|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.object.AbstractObjectFactory
org.mule.module.guice.config.GuiceLookupObjectFactory
public class GuiceLookupObjectFactory
A Componet object factory that is configured from Guice
| Field Summary |
|---|
| Fields inherited from class org.mule.object.AbstractObjectFactory |
|---|
ATTRIBUTE_OBJECT_CLASS, ATTRIBUTE_OBJECT_CLASS_NAME, initialisationCallbacks, logger, muleContext, objectClass, objectClassName, properties |
| Fields inherited from interface org.mule.api.lifecycle.Initialisable |
|---|
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Disposable |
|---|
PHASE_NAME |
| Constructor Summary | |
|---|---|
GuiceLookupObjectFactory()
|
|
| Method Summary | |
|---|---|
void |
dispose()
A lifecycle method where implementor should free up any resources. |
Class |
getClassBinding()
|
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 |
isAutoWireObject()
Return true if the created object should get its dependencies wired from the registry automatically. |
boolean |
isExternallyManagedLifecycle()
Returns true if Mule should not manage the life-cycle the object instance returned from the ObjectFactory. |
boolean |
isSingleton()
Returns true if the ObjectFactory implementation always returns the same object instance. |
void |
setClassBinding(Class classBinding)
|
void |
setMuleContext(MuleContext context)
|
| Methods inherited from class org.mule.object.AbstractObjectFactory |
|---|
addObjectInitialisationCallback, fireInitialisationCallbacks, getObjectClassName, getProperties, setObjectClass, setObjectClassName, setProperties, setupObjectClassFromObjectClassName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GuiceLookupObjectFactory()
| Method Detail |
|---|
public void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwaresetMuleContext in class AbstractObjectFactory
public 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 shutdown
RecoverableException - if an error occurs that can be recovered frompublic void dispose()
Disposable
dispose in interface Disposabledispose in class AbstractObjectFactorypublic Class<?> getObjectClass()
ObjectFactory
getObjectClass in interface ObjectFactorygetObjectClass in class AbstractObjectFactory
public Object getInstance()
throws Exception
AbstractObjectFactory
getInstance in interface ObjectFactorygetInstance in class AbstractObjectFactoryExceptionpublic Class getClassBinding()
public void setClassBinding(Class classBinding)
public boolean isSingleton()
ObjectFactory
isSingleton in interface ObjectFactoryisSingleton in class AbstractObjectFactorypublic boolean isExternallyManagedLifecycle()
ObjectFactory
isExternallyManagedLifecycle in interface ObjectFactoryisExternallyManagedLifecycle in class AbstractObjectFactorypublic boolean isAutoWireObject()
ObjectFactory
isAutoWireObject in interface ObjectFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||