public class ClassNormalizer extends Object
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.
Constructor and Description |
---|
ClassNormalizer() |
public Class getNormalizedClass(Object object)
object
- the Object
for which the normalized Class is to be returned.public Class normalize(Class clazz)
clazz
- the class to normalize, not nullCopyright © 2002-2013 Apache Software Foundation. All Rights Reserved.