Examples of MethodMap


Examples of com.sun.ejb.containers.util.MethodMap

        // Create a map implementation that is optimized
        // for method lookups.  This is especially important for local
        // invocations through dynamic proxies, where the overhead of the
        // the (method -> invocationInfo) lookup has been measured to be
        // 6X greater than the overhead of the reflective call itself.
        proxyInvocationInfoMap = new MethodMap(invocationInfoMap);

       
        // Store InvocationInfo by standard ejb interface method type
        // to avoid an invocation info map lookup during authorizeLocalMethod
        // and authorizeRemoteMethod.
View Full Code Here

Examples of com.sun.ejb.containers.util.MethodMap

        // Create a map implementation that is optimized
        // for method lookups.  This is especially important for local
        // invocations through dynamic proxies, where the overhead of the
        // the (method -> invocationInfo) lookup has been measured to be
        // 6X greater than the overhead of the reflective call itself.
        proxyInvocationInfoMap = new MethodMap(invocationInfoMap);

       
        // Store InvocationInfo by standard ejb interface method type
        // to avoid an invocation info map lookup during authorizeLocalMethod
        // and authorizeRemoteMethod.
View Full Code Here

Examples of com.sun.ejb.containers.util.MethodMap

        // Create a map implementation that is optimized
        // for method lookups.  This is especially important for local
        // invocations through dynamic proxies, where the overhead of the
        // the (method -> invocationInfo) lookup has been measured to be
        // 6X greater than the overhead of the reflective call itself.
        proxyInvocationInfoMap = new MethodMap(invocationInfoMap);

       
        // Store InvocationInfo by standard ejb interface method type
        // to avoid an invocation info map lookup during authorizeLocalMethod
        // and authorizeRemoteMethod.
View Full Code Here

Examples of com.sun.ejb.containers.util.MethodMap

        // Create a map implementation that is optimized
        // for method lookups.  This is especially important for local
        // invocations through dynamic proxies, where the overhead of the
        // the (method -> invocationInfo) lookup has been measured to be
        // 6X greater than the overhead of the reflective call itself.
        proxyInvocationInfoMap = new MethodMap(invocationInfoMap);

       
        // Store InvocationInfo by standard ejb interface method type
        // to avoid an invocation info map lookup during authorizeLocalMethod
        // and authorizeRemoteMethod.
View Full Code Here

Examples of com.sun.ejb.containers.util.MethodMap

        // Create a map implementation that is optimized
        // for method lookups.  This is especially important for local
        // invocations through dynamic proxies, where the overhead of the
        // the (method -> invocationInfo) lookup has been measured to be
        // 6X greater than the overhead of the reflective call itself.
        proxyInvocationInfoMap = new MethodMap(invocationInfoMap);

       
        // Store InvocationInfo by standard ejb interface method type
        // to avoid an invocation info map lookup during authorizeLocalMethod
        // and authorizeRemoteMethod.
View Full Code Here

Examples of com.sun.ejb.containers.util.MethodMap

        // Create a map implementation that is optimized
        // for method lookups.  This is especially important for local
        // invocations through dynamic proxies, where the overhead of the
        // the (method -> invocationInfo) lookup has been measured to be
        // 6X greater than the overhead of the reflective call itself.
        proxyInvocationInfoMap = new MethodMap(invocationInfoMap);

       
        // Store InvocationInfo by standard ejb interface method type
        // to avoid an invocation info map lookup during authorizeLocalMethod
        // and authorizeRemoteMethod.
View Full Code Here

Examples of net.sf.joafip.store.entity.bytecode.MethodMap

  }

  private void run() throws IOException {
    final ClassReader classReader = new ClassReader(
        ForMaxLocals.class.getName());
    final MethodMap methodMap = new MethodMap();
    final Set<String> syntheticFieldSet = new TreeSet<String>();
    final ClassVisitorForStorable classVisitorForStorable = new ClassVisitorForStorable();
    classVisitorForStorable.setMethodMap(methodMap, syntheticFieldSet);
    // must not skip code to compute max locals
    classReader.accept(classVisitorForStorable, /* ClassReader.SKIP_CODE | */
        ClassReader.SKIP_DEBUG | ClassReader.SKIP_FRAMES);
    final Set<Entry<MethodMapKey, Integer>> entrySet = methodMap.entrySet();
    for (Entry<MethodMapKey, Integer> entry : entrySet) {
      final MethodMapKey key = entry.getKey();
      System.out.println("maxs local " + key.getMethodName() + " "// NOPMD
          + key.getMethodDesc() + " " + entry.getValue());
    }
View Full Code Here

Examples of net.sf.joafip.store.entity.bytecode.MethodMap

  public byte[] generate(final String className, final byte[] originalCode,
      final int off, final int len) {

    final EnumTransformationType transformationTypeFromProperties = transformAttribute(className);
    final ClassReader classReader = new ClassReader(originalCode, off, len);
    final IMethodMap methodMap = new MethodMap();
    final Set<String> syntheticFieldSet = new TreeSet<String>();
    final ClassVisitorForStorable classVisitorForStorable = new ClassVisitorForStorable();
    classVisitorForStorable.setMethodMap(methodMap, syntheticFieldSet);
    // must not skip code to compute max locals
    classReader.accept(classVisitorForStorable, /* ClassReader.SKIP_CODE | */
        ClassReader.SKIP_DEBUG | ClassReader.SKIP_FRAMES);

    // annotation override instrumentation properties
    transformationAttribute = classVisitorForStorable
        .getTransformationType();
    if (transformationAttribute == null) {
      transformationAttribute = transformationTypeFromProperties;
    }

    final String[] splitedClassName = className.split(POINT_REGEX);
    final PackageNode node = packageMgr.addPackage(splitedClassName, 0,
        splitedClassName.length, transformationAttribute);

    byte[] code = null;
    if (EnumTransformationType.NONE.equals(transformationAttribute)
        && !methodMap.hasMethodToTransform()) {
      transformed = false;
    } else {
      transformed = true;
    }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.