net.dpml.annotation
Annotation Type Component


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Component

Component annotation dealing with lifestyle policy, lifecycle model, and collection semantics.

Version:
2.1.0
Author:
Digital Product Management Library

Optional Element Summary
 CollectionPolicy collection
          Declaration of an explicit component collection policy.
 String handlerClassname
          Declaration of an alternative component runtime strategy handler classname.
 String handlerURI
          Declaration of an alternative component runtime handler uri.
 String lifecycle
          Declaration of an alternative lifestyle graph via a URI.
 LifestylePolicy lifestyle
          Declaration of an explicit component lifestyle policy.
 String name
          Declaration of the component name.
 

name

public abstract String name
Declaration of the component name. QAs a general rule it is recommended that component names should be restricted to short names without periods or spaces (such as 'widget', 'gizmo', etc.). Component names are used in the construction of composite names that fully qualify the component within the runtime and serve as logging category names. If undefined, a "" name value is declared in which case a container may resolve a name based on the component classname.

Default:
""

lifestyle

public abstract LifestylePolicy lifestyle
Declaration of an explicit component lifestyle policy. If undefined the default policy is LifestylePolicy.THREAD.

Default:
net.dpml.annotation.LifestylePolicy.THREAD

collection

public abstract CollectionPolicy collection
Declaration of an explicit component collection policy. If undefined the default policy is CollectionPolicy.HARD.

Default:
net.dpml.annotation.CollectionPolicy.HARD

lifecycle

public abstract String lifecycle
Declaration of an alternative lifestyle graph via a URI. If undefined the default semantics are derived from a graph definition colocated with the class using the resource path .xgraph.

Default:
""

handlerURI

public abstract String handlerURI
Declaration of an alternative component runtime handler uri.

Default:
"link:part:dpml/metro/dpml-lang-component"

handlerClassname

public abstract String handlerClassname
Declaration of an alternative component runtime strategy handler classname.

Default:
"net.dpml.runtime.ComponentStrategyHandler"