public class IdentifiableValueType extends java.lang.Object implements ArooaValue, ArooaSessionAware, ArooaLifeAware
Unlike components, values can't have an Id. This type allows values to be registered so they can be referenced via the given Id elsewhere in the configuration.
Components are registered when the configuration is parsed but the given value will only be registered during the configuration phase, such as when a job runs in Oddjob.
<oddjob>
<job>
<sequential>
<jobs>
<variables id="vars">
<test>
<identify id="our-value">
<value>
<value value="Apples"/>
</value>
</identify>
</test>
</variables>
<echo>Checking ${vars.test} is ${our-value}</echo>
<check value="${vars.test}" eq="${our-value}"/>
</jobs>
</sequential>
</job>
</oddjob>
| Modifier and Type | Class and Description |
|---|---|
static class |
IdentifiableValueType.Conversions |
| Modifier and Type | Field and Description |
|---|---|
static ArooaElement |
ELEMENT |
| Constructor and Description |
|---|
IdentifiableValueType() |
| Modifier and Type | Method and Description |
|---|---|
void |
configured()
The configuration for the bean has been fully configured.
|
void |
destroy()
The configuration for the bean is about to be destroyed.
|
java.lang.String |
getId() |
ArooaValue |
getValue() |
void |
initialised()
The configuration for the bean has been initialised.
|
void |
setArooaSession(ArooaSession session)
Accept the current Arooa Session.
|
void |
setId(java.lang.String id) |
void |
setValue(ArooaValue value) |
public static final ArooaElement ELEMENT
public void setArooaSession(ArooaSession session)
ArooaSessionAwaresetArooaSession in interface ArooaSessionAwaresession - The Arooa Session. Never null.public java.lang.String getId()
public void setId(java.lang.String id)
public ArooaValue getValue()
public void setValue(ArooaValue value)
public void initialised()
ArooaLifeAwareinitialised in interface ArooaLifeAwarepublic void configured()
ArooaLifeAwareconfigured in interface ArooaLifeAwarepublic void destroy()
ArooaLifeAwaredestroy in interface ArooaLifeAware