1 16 package org.apache.commons.collections.functors; 17 18 import java.io.Serializable ; 19 20 import org.apache.commons.collections.FunctorException; 21 import org.apache.commons.collections.Transformer; 22 23 31 public final class ExceptionTransformer implements Transformer, Serializable { 32 33 34 static final long serialVersionUID = 7179106032121985545L; 35 36 37 38 public static final Transformer INSTANCE = new ExceptionTransformer(); 39 40 46 public static Transformer getInstance() { 47 return INSTANCE; 48 } 49 50 53 private ExceptionTransformer() { 54 super(); 55 } 56 57 64 public Object transform(Object input) { 65 throw new FunctorException("ExceptionTransformer invoked"); 66 } 67 68 } 69 | Popular Tags |