org.jvnet.hk2.annotations
Annotation Type Scoped
@Retention(value=RUNTIME)
@Documented
@Target(value={TYPE,ANNOTATION_TYPE})
public @interface Scoped
Indicates the scope that this managed object is tied to.
In the absence of this annotation, singleton scope is assumed.
A scope can be placed on the same type as Contract
does,
in which case it is used to force the use of a specific scope
for all services
.
- Author:
- Kohsuke Kawaguchi
Required Element Summary |
java.lang.Class<? extends Scope> |
value
|
value
public abstract java.lang.Class<? extends Scope> value
Copyright © 2010 Oracle Corporation. All Rights Reserved.