public interface ObjectFactory extends Initialisable, Disposable
ObjectFactory
is a generic Factory interface.PHASE_NAME
PHASE_NAME
Modifier and Type | Method and Description |
---|---|
void |
addObjectInitialisationCallback(InitialisationCallback callback)
Register a custom initialiser
|
Object |
getInstance()
Retrieve an instance of the object.
|
Class |
getObjectClass()
Returns the class of the object to be instantiated without actually creating
an instance.
|
boolean |
isSingleton()
Returns true if the ObjectFactory implementation always returns the same object
instance.
|
initialise
dispose
Object getInstance() throws Exception
Exception
Class getObjectClass()
boolean isSingleton()
void addObjectInitialisationCallback(InitialisationCallback callback)
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.