org.LexGrid.LexBIG.caCore.client.proxy
Class LexEVSProxyHelperImpl

java.lang.Object
  extended by gov.nih.nci.system.client.proxy.ProxyHelperImpl
      extended by org.LexGrid.LexBIG.caCore.client.proxy.LexEVSProxyHelperImpl
All Implemented Interfaces:
ProxyHelper

public class LexEVSProxyHelperImpl
extends ProxyHelperImpl

Object proxy implementation for EVS. Certain methods are overridden to provide EVS-specific proxying functionality.

Author:
Shaziya Muhsin, Konrad Rokicki

Constructor Summary
LexEVSProxyHelperImpl()
           
 
Method Summary
protected  java.lang.Object convertObjectToProxy(ApplicationService as, java.lang.Object obj)
           
protected  java.lang.Object createClone(java.lang.Object source)
          Creates a serializable copy of a given object
protected  java.lang.Object createProxy(java.lang.Object objectToProxy, ApplicationService advice)
           
protected  java.util.List<java.lang.reflect.Field> getAnnotatedFields(java.lang.Object obj, java.lang.Class annotation)
           
protected  boolean hasRemoteDependencies(java.lang.Class<?> clazz)
           
 boolean isInitialized(MethodInvocation invocation)
          Returns true if the object is initialized
protected  boolean isLexBigClass(java.lang.Class clazz)
          Returns true if the given invocation is for a LexBig object.
 java.lang.Object lazyLoad(ApplicationService as, MethodInvocation invocation)
          Implements the LazyLoading
 
Methods inherited from class gov.nih.nci.system.client.proxy.ProxyHelperImpl
convertArrayToProxy, convertCollectionToProxy, convertListProxyToProxy, convertToObject, convertToProxy, getAllFields, getField, getMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LexEVSProxyHelperImpl

public LexEVSProxyHelperImpl()
Method Detail

convertObjectToProxy

protected java.lang.Object convertObjectToProxy(ApplicationService as,
                                                java.lang.Object obj)
Overrides:
convertObjectToProxy in class ProxyHelperImpl

createProxy

protected java.lang.Object createProxy(java.lang.Object objectToProxy,
                                       ApplicationService advice)

isInitialized

public boolean isInitialized(MethodInvocation invocation)
                      throws java.lang.Throwable
Returns true if the object is initialized

Specified by:
isInitialized in interface ProxyHelper
Overrides:
isInitialized in class ProxyHelperImpl
Throws:
java.lang.Throwable

lazyLoad

public java.lang.Object lazyLoad(ApplicationService as,
                                 MethodInvocation invocation)
                          throws java.lang.Throwable
Implements the LazyLoading

Specified by:
lazyLoad in interface ProxyHelper
Overrides:
lazyLoad in class ProxyHelperImpl
Throws:
java.lang.Throwable

isLexBigClass

protected boolean isLexBigClass(java.lang.Class clazz)
Returns true if the given invocation is for a LexBig object.

Parameters:
clazz - the clazz
Returns:
true, if checks if is lex big class

hasRemoteDependencies

protected boolean hasRemoteDependencies(java.lang.Class<?> clazz)

createClone

protected java.lang.Object createClone(java.lang.Object source)
Creates a serializable copy of a given object

Overrides:
createClone in class ProxyHelperImpl

getAnnotatedFields

protected java.util.List<java.lang.reflect.Field> getAnnotatedFields(java.lang.Object obj,
                                                                     java.lang.Class annotation)