|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.config.builders.AbstractConfigurationBuilder
public abstract class AbstractConfigurationBuilder
A support class for ConfigurationBuilder
implementations
that handles the logic of creating config arrays and Properties
arguments
ConfigurationBuilder
Field Summary | |
---|---|
protected boolean |
configured
|
protected Log |
logger
|
Constructor Summary | |
---|---|
AbstractConfigurationBuilder()
|
Method Summary | |
---|---|
protected void |
applyLifecycle(LifecycleManager lifecycleManager)
Allows a configuration builder to check and customise the lifecycle of objects in the registry being used. |
void |
configure(MuleContext muleContext)
Will configure a MuleContext object based on the builders configuration settings. |
protected abstract void |
doConfigure(MuleContext muleContext)
Will configure a MuleContext based on the configuration provided. |
boolean |
isConfigured()
Has this builder been configured already |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final transient Log logger
protected boolean configured
Constructor Detail |
---|
public AbstractConfigurationBuilder()
Method Detail |
---|
public void configure(MuleContext muleContext) throws ConfigurationException
doConfigure(org.mule.api.MuleContext)
configure
in interface ConfigurationBuilder
muleContext
- The current MuleContext
ConfigurationException
- if the configuration fails i.e. an object cannot be created or
initialised properlyprotected abstract void doConfigure(MuleContext muleContext) throws Exception
ConfigurationBuilder
implementation as bean properties before this method
has been called.
muleContext
- The current MuleContext
ConfigurationException
- if the configuration fails i.e. an object cannot be created or
initialised properly
Exception
protected void applyLifecycle(LifecycleManager lifecycleManager) throws Exception
// If the MuleContext is started, start all objects in the new Registry.
if (lifecycleManager.isPhaseComplete(Startable.PHASE_NAME))
{
lifecycleManager.applyPhase(registry.lookupObjects(Object.class), Startable.PHASE_NAME);
}
lifecycleManager
- the lifecycleManager for the current context
Exception
- if anything goes wrong. Usually this is an exeption bubbled up from calling
a lifecycle method on an object in the registrypublic boolean isConfigured()
isConfigured
in interface ConfigurationBuilder
configure(org.mule.api.MuleContext)
method has been called
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |