Package org.jvnet.hk2.metadata.tests
Class FactoryWithDefaultProxy
- java.lang.Object
-
- org.jvnet.hk2.metadata.tests.FactoryWithDefaultProxy
-
-
Constructor Summary
Constructors Constructor Description FactoryWithDefaultProxy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose(java.lang.Object instance)This method will dispose of objects created with this scope.java.lang.Objectprovide()This method will create instances of the type of this factory.
-
-
-
Method Detail
-
provide
@Singleton @UseProxy public java.lang.Object provide()
Description copied from interface:FactoryThis 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.Object instance)
Description copied from interface:FactoryThis method will dispose of objects created with this scope. This method should not be annotated, as it is naturally paired with the provide method
-
-