|
The org.apache.avalon.meta.info.InfoDescriptor class describes the component
type name, version, and optionally a set of attributes.
Element
|
Occurance
|
Description
|
name
|
1
|
The name of the component type - may be used by a container as
the component default name when generating type related
information in log or error reports.
|
version
|
0..1
|
The component type implementation version. The default
value is 1.0.0.
|
lifestyle
|
0..1
|
Declaration of the component lifestyle. May contain one of the
recognized values "singleton", "thread", "pooled", or "transient".
If not supplied the default value is 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. If undefined, the default
collection policy is "hard".
|
<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>
|