Package net.sourceforge.javautil.common.reflection.cache

Examples of net.sourceforge.javautil.common.reflection.cache.ClassField


      InterceptorInvocationHandler svih = (InterceptorInvocationHandler) Proxy.getInvocationHandler(instance);
      stateMap = InterceptorInvocationHandler.getStateMap(svih);
     
      if (stateMap == null) return null;
    } else {
      ClassField field = ClassCache.getFor(instance.getClass()).getField(InterceptorProxyTypeCJCW.ABILITIES_FIELD_NAME);
      if (field != null && field.getFieldType() == Map.class) {
        field.getJavaMember().setAccessible(true);
        stateMap = (Map) field.getValue(instance);
      } else {
        return null;
      }
    }
   
View Full Code Here


   * @return The interceptor manager, or null if the instance is not an interceptor generated by this API/framework
   *
   * @see InterceptorCompiler
   */
  public static IInterceptorManager getManager (Object instance) {
    ClassField field = ClassCache.getFor(instance.getClass()).getField(InterceptorProxyTypeInterceptor.INTERCEPTOR_FIELD_NAME);
    if (field != null && field.getFieldType() == IInterceptorManager.class) {
      field.ensureAccessibility();
      return (IInterceptorManager) field.getValue(instance);
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.javautil.common.reflection.cache.ClassField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.