|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.betwixt.strategy.ClassNormalizer
public class ClassNormalizer
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 Summary | |
---|---|
ClassNormalizer()
|
Method Summary | |
---|---|
java.lang.Class |
getNormalizedClass(java.lang.Object object)
Gets the normalized class for the given Object. |
java.lang.Class |
normalize(java.lang.Class clazz)
Normalize given class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassNormalizer()
Method Detail |
---|
public java.lang.Class getNormalizedClass(java.lang.Object object)
object
- the Object
for which the normalized Class is to be returned.
public java.lang.Class normalize(java.lang.Class clazz)
clazz
- the class to normalize, not null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |