Package org.jvnet.hk2.metadata.tests
Class FactoryWithVisibility
- java.lang.Object
-
- org.jvnet.hk2.metadata.tests.FactoryWithVisibility
-
@Service @PerLookup @Visibility(LOCAL) public class FactoryWithVisibility extends Object implements Factory<String>
- Author:
- jwells
-
-
Constructor Summary
Constructors Constructor Description FactoryWithVisibility()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose(String instance)
This method will dispose of objects created with this scope.String
provide()
This method will create instances of the type of this factory.
-
-
-
Method Detail
-
provide
@Visibility(LOCAL) @PerLookup public String provide()
Description copied from interface:Factory
This method will create instances of the type of this factory. The provide method must be annotated with the desired scope and qualifiers.
-
-