link
Avalon
Logging Descriptors
Home PlanetProductsCentral
Info Descriptor
Description

The org.apache.avalon.meta.info.InfoDescriptor class describes the component type name, version, and optionally a set of attributes.

Nested Elements
ElementOccuranceDescription
name1 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.
version0..1 The component type implementation version. The default value is 1.0.0.
lifestyle0..1 Declaration of the component lifestyle. May contain one of the recognized values "singleton", "thread", or "transient". If not supplied the default value is transient.
attributes0..1 Declaration of a set of attributes associated with the component type.
collection0..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".
Example XML
  <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>