1 /***************************************2 * *3 * JBoss: The OpenSource J2EE WebOS *4 * *5 * Distributable under LGPL license. *6 * See terms of license at gnu.org. *7 * *8 ***************************************/9 10 package org.jboss.util;11 12 /**13 * An iterface which an object implements to indicate that it will handle14 * coercion by itself.15 *16 * @version <tt>$Revision: 1.1 $</tt>17 * @author <a HREF="mailto:jason@planet57.com">Jason Dillon</a>18 */19 public interface Coercible20 {21 /**22 * Coerce this object into a specified type23 *24 * @param type Type to coerce to25 * @return Coereced object26 *27 * @exception CoercionException Failed to coerce28 */29 Object coerce(Class type) throws CoercionException;30 }31