org.nakedobjects.plugins.headless.viewer.internal
Class DomainObjectInvocationHandler<T>
java.lang.Object
org.nakedobjects.plugins.headless.viewer.internal.DelegatingInvocationHandlerDefault<T>
org.nakedobjects.plugins.headless.viewer.internal.DomainObjectInvocationHandler<T>
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler, DelegatingInvocationHandler<T>
public class DomainObjectInvocationHandler<T>
- extends DelegatingInvocationHandlerDefault<T>
|
Method Summary |
java.lang.Object |
invoke(java.lang.Object proxyObject,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
protected boolean |
isSaveMethod(java.lang.reflect.Method method)
|
protected boolean |
isTitleMethod(java.lang.reflect.Method method)
|
protected boolean |
isUnderlyingMethod(java.lang.reflect.Method method)
|
| Methods inherited from class org.nakedobjects.plugins.headless.viewer.internal.DelegatingInvocationHandlerDefault |
delegate, getAuthenticationSession, getDelegate, getExecutionMode, getHeadlessViewer, getRuntimeContext, getSpecificationLoader, isObjectMethod, isResolveObjectChangedEnabled, notifyListeners, objectChangedIfRequired, objectChangedIfRequired, resolveIfRequired, resolveIfRequired, setResolveObjectChangedEnabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
titleMethod
protected java.lang.reflect.Method titleMethod
- The title() method; may be null.
saveMethod
protected java.lang.reflect.Method saveMethod
- The save() method from
ViewObject.save().
underlyingMethod
protected java.lang.reflect.Method underlyingMethod
- The underlying() method from
ViewObject.underlying().
DomainObjectInvocationHandler
public DomainObjectInvocationHandler(T delegate,
HeadlessViewer embeddedViewer,
HeadlessViewer.ExecutionMode mode,
RuntimeContext runtimeContext)
invoke
public java.lang.Object invoke(java.lang.Object proxyObject,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
invoke in interface java.lang.reflect.InvocationHandler- Overrides:
invoke in class DelegatingInvocationHandlerDefault<T>
- Throws:
java.lang.Throwable
isTitleMethod
protected boolean isTitleMethod(java.lang.reflect.Method method)
isSaveMethod
protected boolean isSaveMethod(java.lang.reflect.Method method)
isUnderlyingMethod
protected boolean isUnderlyingMethod(java.lang.reflect.Method method)
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.