Package org.jvnet.hk2.metadata.tests
Class FactoryWithVisibility
- java.lang.Object
-
- org.jvnet.hk2.metadata.tests.FactoryWithVisibility
-
- All Implemented Interfaces:
Factory<java.lang.String>
@Service @PerLookup @Visibility(LOCAL) public class FactoryWithVisibility extends java.lang.Object implements Factory<java.lang.String>
-
-
Constructor Summary
Constructors Constructor Description FactoryWithVisibility()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose(java.lang.String instance)
This method will dispose of objects created with this scope.java.lang.String
provide()
This method will create instances of the type of this factory.
-
-
-
Method Detail
-
provide
@Visibility(LOCAL) @PerLookup public java.lang.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.
-
dispose
public void dispose(java.lang.String instance)
Description copied from interface:Factory
This method will dispose of objects created with this scope. This method should not be annotated, as it is naturally paired with the provide method
-
-