org.mule.impl.container
Class PropertiesContainerContext
java.lang.Object
org.mule.impl.container.AbstractContainerContext
org.mule.impl.container.PropertiesContainerContext
- All Implemented Interfaces:
- Disposable, Initialisable, UMOContainerContext
public class PropertiesContainerContext
- extends AbstractContainerContext
Provides a facade for accessing System properties and properties on the
ManagementContext. This container context serves 3 functions -
- Allows System properties to be set in Mule Xml (by setting the
#systemProperties Map)
- Allows one to load System properties into the mule context so that MuleXml
templates referring to System properties can be used (i.e. ${os.name}).
- Provides a consistent way to set abitary properties on the Management
Context. Setting properties on this container context is equivilent to using the
element in Mule Xml. The latter element may be removed in
the future.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
systemProperties
protected Map systemProperties
properties
protected Map properties
loadSystemProperties
protected boolean loadSystemProperties
enableTemplates
protected boolean enableTemplates
templateParser
protected TemplateParser templateParser
PropertiesContainerContext
public PropertiesContainerContext()
configure
public void configure(Reader configuration)
throws ContainerException
- Specified by:
configure
in class AbstractContainerContext
- Throws:
ContainerException
getComponent
public Object getComponent(Object key)
throws ObjectNotFoundException
- Queries a component from the underlying container. For this container it will
look up a property on the Mule Management Context.
- Parameters:
key
- the key fo find the component with. It's up to the individual
implementation to check the type of this key and look up objects
accordingly
- Returns:
- the component found in the container
- Throws:
ObjectNotFoundException
- if the component is not
found
getSystemProperties
public Map getSystemProperties()
setSystemProperties
public void setSystemProperties(Map properties)
getProperties
public Map getProperties()
setProperties
public void setProperties(Map properties)
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.