|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.morph.wrap.support.DefaultWrapperInvocationHandler
public class DefaultWrapperInvocationHandler
Default WrapperInvocationHandler implementation.
Constructor Summary | |
---|---|
DefaultWrapperInvocationHandler(java.lang.Object wrapped)
Create a new DefaultWrapperInvocationHandler. |
|
DefaultWrapperInvocationHandler(java.lang.Object wrapped,
Reflector reflector)
Create a new DefaultWrapperInvocationHandler. |
Method Summary | |
---|---|
protected BidirectionalMap |
getBiDirectionalReflectorWrapperMap()
Get the bidirectional reflector map. |
java.lang.Class[] |
getInterfaces(java.lang.Object object)
|
Reflector |
getReflector()
Get the reflector. |
java.util.Map |
getReflectorWrapperMap()
Get the reflectorWrapperMap. |
java.lang.Object |
getWrapped()
Get the wrapped object. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
void |
setReflector(Reflector reflector)
Set the reflector. |
void |
setReflectorWrapperMap(java.util.Map reflectorWrapperMap)
Set the reflectorWrapperMap. |
void |
setWrapped(java.lang.Object wrapped)
Set the wrapped object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultWrapperInvocationHandler(java.lang.Object wrapped)
wrapped
- objectpublic DefaultWrapperInvocationHandler(java.lang.Object wrapped, Reflector reflector)
wrapped
- objectreflector
- to useMethod Detail |
---|
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
java.lang.Throwable
public java.lang.Class[] getInterfaces(java.lang.Object object)
getInterfaces
in interface WrapperInvocationHandler
protected BidirectionalMap getBiDirectionalReflectorWrapperMap()
public java.util.Map getReflectorWrapperMap()
public void setReflectorWrapperMap(java.util.Map reflectorWrapperMap)
reflectorWrapperMap
- to setpublic Reflector getReflector()
public void setReflector(Reflector reflector)
reflector
- to setpublic java.lang.Object getWrapped()
public void setWrapped(java.lang.Object wrapped)
wrapped
- object to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |