Package org.apache.ofbiz.base.lang
Interface Factory<R,A>
- All Known Implementing Classes:
DelegatorFactory
,DelegatorFactoryImpl
public interface Factory<R,A>
Factory interface.
-
Method Summary
-
Method Details
-
getInstance
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
-