public interface

Factory

org.apache.commons.collections.Factory
Known Indirect Subclasses

Class Overview

Defines a functor interface implemented by classes that create objects.

A Factory 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.

Summary

Public Methods
abstract Object create()
Create a new object.

Public Methods

public abstract Object create ()

Create a new object.

Returns
  • a new object
Throws
FunctorException (runtime) if the factory cannot create an object