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(s).
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
value
@Index
public abstract Class<?>[] value
Copyright © 2012 Oracle Corporation. All Rights Reserved.