Package org.jvnet.hk2.metadata.tests
Class FactoryWithFalseProxyForSameScope
- java.lang.Object
-
- org.jvnet.hk2.metadata.tests.FactoryWithFalseProxyForSameScope
-
-
Constructor Summary
Constructors Constructor Description FactoryWithFalseProxyForSameScope()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose(java.util.Map<java.lang.String,java.util.List<java.lang.String>> instance)
This method will dispose of objects created with this scope.java.util.Map<java.lang.String,java.util.List<java.lang.String>>
provide()
This method will create instances of the type of this factory.
-
-
-
Method Detail
-
provide
@ProxyForSameScope(false) public java.util.Map<java.lang.String,java.util.List<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.util.Map<java.lang.String,java.util.List<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
-
-