|
Element
|
Occurance
|
Description
|
name
|
1
|
The name of the component type.
|
version
|
0..1
|
The component type implementation version.
|
lifestyle
|
0..1
|
Declaration of the component lifestyle. May contain one of the
reconized values "singleton", "thread", "pooled", or "transient".
|
attributes
|
0..1
|
Declaration of a set of attributes associated with the component type.
|
collection
|
0..1
|
Declaration of a garbage collection policy default override. If
the value is "weak" the component will be decommissioned automatically
if all references to the component have been released. If the value
"soft" the component will be decommissioned in the event of
memory contention. If the value is "hard" the component will be
maintained for the life of its container.
|
The org.apache.avalon.meta.info.infoDescriptor class describes the component type name, version, and optionally a set of attributes.
<info>
<name>test</info>
<version>1.0</version>
<lifestyle>singleton</lifestyle>
<collection>soft</collection>
<attributes>
<attribute key="about" value="An example attribute."/>
<attribute key="status" value="FINAL"/>
</attributes>
</info>
|