org.apache.commons.collections
Interface Factory

All Known Implementing Classes:
InstantiateFactory, ConstantFactory, ExceptionFactory

public interface Factory

Defines a functor interface implemented by classes that create objects.

Since:
Commons Collections 2.1
Version:
$Revision: 1.7 $ $Date: 2004/01/14 21:43:04 $
Author:
Arron Bates, Stephen Colebourne

Method Summary
 Object create()
          Create a new object.
 

Method Detail

create

public Object create()
Create a new object.
Returns:
a new object
Throws:
FunctorException - (runtime) if the factory cannot create an object


Copyright © 2001-2004 Apache Software Foundation. All Rights Reserved.