org.apache.commons.collections.functors

Class ExceptionFactory

Implemented Interfaces:
Factory, Serializable

public final class ExceptionFactory
extends java.lang.Object
implements Factory, Serializable

Factory implementation that always throws an exception.
Version:
$Revision: 1.7 $ $Date: 2004/05/16 11:47:38 $
Author:
Stephen Colebourne
Since:
Commons Collections 3.0

Field Summary

static Factory
INSTANCE
Singleton predicate instance

Method Summary

Object
create()
Always throws an exception.
static Factory
getInstance()
Factory returning the singleton instance.

Field Details

INSTANCE

public static final Factory INSTANCE
Singleton predicate instance

Method Details

create

public Object create()
Always throws an exception.
Specified by:
create in interface Factory
Returns:
never

getInstance

public static Factory getInstance()
Factory returning the singleton instance.
Returns:
the singleton instance
Since:
Commons Collections 3.1

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