org.jvnet.hk2.annotations
Annotation Type Extract


@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD})
public @interface Extract

Marks variables to be exported into the Habitat.

Care should be taken to use a name that is meangingful (self-documenting) as well as one unlikely to conflict with names used by other components. Extracted fields that are not named are essentially globals, intended for use by "singleton" services.

Example:

Author:
Jerome Dochez
See Also:
Inject, Habitat

Optional Element Summary
 java.lang.String name
          Returns the name.
 

name

public abstract java.lang.String name
Returns the name.

Returns:
name of the resource
Default:
""


Copyright © 2009 Sun Microsystems, Inc.. All Rights Reserved.