Save This Page
Home » commons-betwixt-0.8-src » org.apache.commons » betwixt » strategy » [javadoc | source]
org.apache.commons.betwixt.strategy
public class: ClassNormalizer [javadoc | source]
java.lang.Object
   org.apache.commons.betwixt.strategy.ClassNormalizer

Direct Known Subclasses:
    ListedClassNormalizer

Class normalization strategy.

The normalized Class is the Class that Betwixt should introspect. This strategy class allows the introspected Class to be varied. This implementation simply returns the Class given.

Used by Betwixt to allow superclasses or interfaces to be subsittuted before an object is introspected. This allows users to feed in logical interfaces and make Betwixt ignore properties other than those in the interface. It also allows support for Proxy's. Together, these features allow Betwixt to deal with Entity Beans properly by viewing them through their remote interfaces.

Method from org.apache.commons.betwixt.strategy.ClassNormalizer Summary:
getNormalizedClass,   normalize
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.betwixt.strategy.ClassNormalizer Detail:
 public Class getNormalizedClass(Object object) 
    Gets the normalized class for the given Object. The normalized Class is the Class that Betwixt should introspect. This strategy class allows the introspected Class to be varied.
 public Class normalize(Class clazz) 
    Normalize given class. The normalized Class is the Class that Betwixt should introspect. This strategy class allows the introspected Class to be varied.