|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Factory<T>
Defines a functor interface implemented by classes that create objects.
AFactory
creates an object without using an input parameter.
If an input parameter is required, then Transformer
is more appropriate.
Standard implementations of common factories are provided by
FactoryUtils
. These include factories that return a constant,
a copy of a prototype or a new instance.
Method Summary | |
---|---|
T |
create()
Create a new object. |
Method Detail |
---|
T create()
FunctorException
- (runtime) if the factory cannot create an object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |