Javadoc Tags

Lifestyle Tag

The optional lifestyle tag associates a lifestyle policy with a component type. Recognized lifestyle policies include 'singleton', 'thread', 'pooled', and 'transient'.

package net.osm;

/**
 * Example of the declaration of a lifestyle policy within a component.
 *
 * @avalon.meta.version 1.0
 * @avalon.meta.name sample
 * @avalon.meta.lifestyle transient
 */
public class DefaultComponent
{
  ...
}

Generated meta-info type descriptor:

<type>
  <info>
    <version>1.0.0</version>
    <name>sample</name>
    <lifestyle>transient</lifestyle>
  </info>
</type>