## Uses of Interface
org.apache.commons.collections.Factory

Packages that use Factory
org.apache.commons.collections: This package contains the interfaces and utilities shared across all the subpackages of this component.
org.apache.commons.collections.functors: This package contains implementations of the `Closure`, `Predicate`, `Transformer` and `Factory` interfaces.
org.apache.commons.collections.list: This package contains implementations of the `List` interface.
org.apache.commons.collections.map: This package contains implementations of the `Map`, `IterableMap`, `OrderedMap` and `SortedMap` interfaces.

Uses of Factory in org.apache.commons.collections

Methods in org.apache.commons.collections that return Factory
`static Factory` `FactoryUtils.exceptionFactory()` Gets a Factory that always throws an exception.
`static Factory` `FactoryUtils.nullFactory()` Gets a Factory that will return null each time the factory is used.
`static Factory` `FactoryUtils.constantFactory(Object constantToReturn)` Creates a Factory that will return the same object each time the factory is used.
`static Factory` `FactoryUtils.prototypeFactory(Object prototype)` Creates a Factory that will return a clone of the same prototype object each time the factory is used.
`static Factory` `FactoryUtils.instantiateFactory(Class classToInstantiate)` Creates a Factory that can create objects of a specific type using a no-args constructor.
`static Factory` `FactoryUtils.instantiateFactory(Class classToInstantiate, Class[] paramTypes, Object[] args)` Creates a Factory that can create objects of a specific type using the arguments specified to this method.

Methods in org.apache.commons.collections with parameters of type Factory
`static Transformer` `TransformerUtils.asTransformer(Factory factory)` Creates a Transformer that calls a Factory each time the transformer is used.
`static Map` `MapUtils.lazyMap(Map map, Factory factory)` Returns a "lazy" map whose values will be created on demand.
`static SortedMap` `MapUtils.lazySortedMap(SortedMap map, Factory factory)` Returns a "lazy" sorted map whose values will be created on demand.
`static List` `ListUtils.lazyList(List list, Factory factory)` Returns a "lazy" list whose elements will be created on demand.

Uses of Factory in org.apache.commons.collections.functors

Classes in org.apache.commons.collections.functors that implement Factory
`class` `ConstantFactory` Factory implementation that returns the same constant each time.
`class` `ExceptionFactory` Factory implementation that always throws an exception.
`class` `InstantiateFactory` Factory implementation that creates a new object instance by reflection.

Fields in org.apache.commons.collections.functors declared as Factory
`static Factory` `ExceptionFactory.INSTANCE` Singleton predicate instance
`static Factory` `ConstantFactory.NULL_INSTANCE` Returns null each time

Methods in org.apache.commons.collections.functors that return Factory
`static Factory` `ExceptionFactory.getInstance()` Factory returning the singleton instance.
`static Factory` `InstantiateFactory.getInstance(Class classToInstantiate, Class[] paramTypes, Object[] args)` Factory method that performs validation.
`static Factory` `PrototypeFactory.getInstance(Object prototype)` Factory method that performs validation.
`static Factory` `ConstantFactory.getInstance(Object constantToReturn)` Factory method that performs validation.
`Factory` `FactoryTransformer.getFactory()` Gets the factory.

Methods in org.apache.commons.collections.functors with parameters of type Factory
`static Transformer` `FactoryTransformer.getInstance(Factory factory)` Factory method that performs validation.

Constructors in org.apache.commons.collections.functors with parameters of type Factory
`FactoryTransformer(Factory factory)` Constructor that performs no validation.

Uses of Factory in org.apache.commons.collections.list

Fields in org.apache.commons.collections.list declared as Factory
`protected Factory` `LazyList.factory` The factory to use to lazily instantiate the objects

Methods in org.apache.commons.collections.list with parameters of type Factory
`static List` `LazyList.decorate(List list, Factory factory)` Factory method to create a lazily instantiating list.

Constructors in org.apache.commons.collections.list with parameters of type Factory
`LazyList(List list, Factory factory)` Constructor that wraps (not copies).

Uses of Factory in org.apache.commons.collections.map

Methods in org.apache.commons.collections.map with parameters of type Factory
`static SortedMap` `LazySortedMap.decorate(SortedMap map, Factory factory)` Factory method to create a lazily instantiated sorted map.
`static Map` `LazyMap.decorate(Map map, Factory factory)` Factory method to create a lazily instantiated map.

Constructors in org.apache.commons.collections.map with parameters of type Factory
`LazySortedMap(SortedMap map, Factory factory)` Constructor that wraps (not copies).
`LazyMap(Map map, Factory factory)` Constructor that wraps (not copies).

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