org.jboss.util
Interface Coercible


public interface Coercible

An iterface which an object implements to indicate that it will handle coercion by itself.


Method Summary
 java.lang.Object coerce(java.lang.Class type)
          Coerce this object into a specified type
 

Method Detail

coerce

public java.lang.Object coerce(java.lang.Class type)
                        throws CoercionException (src) 
Coerce this object into a specified type

Parameters:
type - Type to coerce to
Returns:
Coereced object
Throws:
CoercionException (src) - Failed to coerce