org.apache.commons.collections
public interface Factory
A Factory
creates an object without using an input parameter.
If an input parameter is required, then {@link Transformer} is more appropriate.
Standard implementations of common factories are provided by {@link FactoryUtils}. These include factories that return a constant, a copy of a prototype or a new instance.
Since: Commons Collections 2.1
Version: $Revision: 1.9 $ $Date: 2004/04/14 20:08:57 $
Method Summary | |
---|---|
Object | create()
Create a new object.
|
Returns: a new object
Throws: FunctorException (runtime) if the factory cannot create an object