public class

ClassNormalizer

extends Object
java.lang.Object
   ↳ org.apache.commons.betwixt.strategy.ClassNormalizer
Known Direct Subclasses

Class Overview

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.

Summary

Public Constructors
ClassNormalizer()
Public Methods
Class getNormalizedClass(Object object)
Gets the normalized class for the given Object.
Class normalize(Class clazz)
Normalize given class.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ClassNormalizer ()

Public Methods

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.

Parameters
object the Object for which the normalized Class is to be returned.
Returns
  • the normalized Class

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.

Parameters
clazz the class to normalize, not null
Returns
  • this implementation the same clazz, subclasses may return any compatible class.