public interface RuntimeConfiguration
RuntimeListener
s, and children add there
values back in to the parent using the setter methods:
setProperty(String, Object)
,
setIndexedProperty(String, int, Object)
,
setMappedProperty(String, String, Object)
.
The runtime is available to client code via a components
ArooaContext
.Modifier and Type | Method and Description |
---|---|
void |
addRuntimeListener(RuntimeListener listener)
Add a
RuntimeListener . |
void |
configure()
Configure the object this configuration wraps.
|
void |
destroy()
Destroy this RuntimeConfiguration.
|
ArooaClass |
getClassIdentifier()
Get the name of the class that this RuntimeConfiguration will
be configuring.
|
void |
init()
Initialise this RuntimeConfiguration.
|
void |
removeRuntimeListener(RuntimeListener listener)
Remove a
RuntimeListener . |
void |
setIndexedProperty(java.lang.String name,
int index,
java.lang.Object value)
Set an indexed property on the wrapped object.
|
void |
setMappedProperty(java.lang.String name,
java.lang.String key,
java.lang.Object value)
Set a mapped property on the wrapped object.
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
Set a property on the wrapped object.
|
void addRuntimeListener(RuntimeListener listener)
RuntimeListener
.listener
- The listener. Must not be null.void removeRuntimeListener(RuntimeListener listener)
RuntimeListener
.listener
- The listener. Must not be null.ArooaClass getClassIdentifier()
void init() throws ArooaConfigurationException
ArooaConfigurationException
void configure() throws ArooaConfigurationException
This will be called at the component level by client code. Child RuntimeConfigurations should listen for and propagate configuration events.
ArooaConfigurationException
void destroy() throws ArooaConfigurationException
This will be called at the component level by client code. Child RuntimeConfigurations should listen for and propagate destroy events.
Unlike configuration, destroy events should be passed to child components as well.
ArooaConfigurationException
void setProperty(java.lang.String name, java.lang.Object value) throws ArooaPropertyException
name
- The name of the property.value
- The value. May be null.ArooaException
- If setting the property failed.ArooaPropertyException
void setMappedProperty(java.lang.String name, java.lang.String key, java.lang.Object value) throws ArooaPropertyException
name
- The name of the property.key
- The key.value
- The value.ArooaException
- If setting the property failed.ArooaPropertyException
void setIndexedProperty(java.lang.String name, int index, java.lang.Object value) throws ArooaPropertyException
name
- The name of the property.index
- The 0 based index.value
- The value.ArooaException
- If setting the property failed.ArooaPropertyException