Package org.jvnet.hk2.metadata.tests
Class AbstractFactory<A,B,C,D>
- java.lang.Object
-
- org.jvnet.hk2.metadata.tests.AbstractFactory<A,B,C,D>
-
- All Implemented Interfaces:
Factory<C>
- Direct Known Subclasses:
ConcreteFactory
public abstract class AbstractFactory<A,B,C,D> extends java.lang.Object implements Factory<C>
This is an abstract factory, the true type will comd from the concrete class
-
-
Constructor Summary
Constructors Constructor Description AbstractFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddispose(C killMe)This method will dispose of objects created with this scope.abstract AgetA()abstract BgetB()abstract CgetC()abstract DgetD()Cprovide()This method will create instances of the type of this factory.
-
-
-
Method Detail
-
getA
public abstract A getA()
-
getB
public abstract B getB()
-
getC
public abstract C getC()
-
getD
public abstract D getD()
-
provide
@Singleton public C 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.
-
-