Package org.apache.ofbiz.base.lang
Interface Factory<R,A>
-
- All Known Subinterfaces:
ScriptHelperFactory
,UtilObjectTests.TestFactoryIntf
- All Known Implementing Classes:
DelegatorFactory
,DelegatorFactoryImpl
,ScriptHelperFactoryImpl
,UtilObjectTests.FirstTestFactory
,UtilObjectTests.SecondTestFactory
public interface Factory<R,A>
Factory interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description R
getInstance(A obj)
Returns an instance ofR
.
-
-
-
Method Detail
-
getInstance
R getInstance(A obj)
Returns an instance ofR
. This is a basic factory interface that is meant to be extended. Sub-interfaces declare types forA
(thegetInstance
argument), andR
(the type returned bygetInstance
).- Parameters:
obj
- Optional object to be used inR
's construction, or to be used as a selector key- Returns:
- An instance of
R
-
-