Package org.apache.commons.collections
Interface Factory
- 
- All Known Implementing Classes:
 ConstantFactory,ExceptionFactory,InstantiateFactory
public interface FactoryDefines a functor interface implemented by classes that create objects.A
Factorycreates an object without using an input parameter. If an input parameter is required, thenTransformeris 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.- Since:
 - Commons Collections 2.1
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectcreate()Create a new object. 
 - 
 
- 
- 
Method Detail
- 
create
java.lang.Object create()
Create a new object.- Returns:
 - a new object
 - Throws:
 FunctorException- (runtime) if the factory cannot create an object
 
 - 
 
 -