org.jvnet.hk2.annotations
Annotation Type FactoryFor
@Contract
@Documented
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface FactoryFor
Indicates that the component serves as a factory for the specified type.
This annotation is useful to plug existing factory-created objects into HK2.
Normally goes with Service
annotation, and this annotation must be placed
on a class that implements Factory
- Author:
- Kohsuke Kawaguchi
- See Also:
Factory
Required Element Summary |
java.lang.Class<?> |
value
|
value
@Index
public abstract java.lang.Class<?> value
Copyright © 2009 Sun Microsystems, Inc.. All Rights Reserved.