congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ProxyFactory$ProxyDetails
Code IndexAdd Tabnine to your IDE (free)

How to use
ProxyFactory$ProxyDetails
in
javassist.util.proxy

Best Java code snippets using javassist.util.proxy.ProxyFactory$ProxyDetails (Showing top 6 results out of 315)

origin: org.javassist/javassist

private void createClass2(ClassLoader cl, Lookup lookup) {
  String key = getKey(superClass, interfaces, signature, factoryWriteReplace);
  /*
   * Excessive concurrency causes a large memory footprint and slows the
   * execution speed down (with JDK 1.5).  Thus, we use a jumbo lock for
   * reducing concrrency.
   */
  // synchronized (proxyCache) {
    Map<String,ProxyDetails> cacheForTheLoader = proxyCache.get(cl);
    ProxyDetails details;
    if (cacheForTheLoader == null) {
      cacheForTheLoader = new HashMap<String,ProxyDetails>();
      proxyCache.put(cl, cacheForTheLoader);
    }
    details = cacheForTheLoader.get(key);
    if (details != null) {
      Reference<Class<?>> reference = details.proxyClass;
      thisClass = reference.get();
      if (thisClass != null) {
        return;
      }
    }
    createClass3(cl, lookup);
    details = new  ProxyDetails(signature, thisClass, factoryWriteReplace);
    cacheForTheLoader.put(key, details);
  // }
}
origin: hstaudacher/osgi-jax-rs-connector

private void createClass2(ClassLoader cl) {
  String key = getKey(superClass, interfaces, signature, factoryWriteReplace);
  /*
   * Excessive concurrency causes a large memory footprint and slows the
   * execution speed down (with JDK 1.5).  Thus, we use a jumbo lock for
   * reducing concrrency.
   */
  // synchronized (proxyCache) {
    HashMap cacheForTheLoader = (HashMap)proxyCache.get(cl);
    ProxyDetails details;
    if (cacheForTheLoader == null) {
      cacheForTheLoader = new HashMap();
      proxyCache.put(cl, cacheForTheLoader);
    }
    details = (ProxyDetails)cacheForTheLoader.get(key);
    if (details != null) {
      WeakReference reference = details.proxyClass;
      thisClass = (Class)reference.get();
      if (thisClass != null) {
        return;
      }
    }
    createClass3(cl);
    details = new  ProxyDetails(signature, thisClass, factoryWriteReplace);
    cacheForTheLoader.put(key, details);
  // }
}
origin: hstaudacher/osgi-jax-rs-connector

private void createClass2(ClassLoader cl) {
  String key = getKey(superClass, interfaces, signature, factoryWriteReplace);
  /*
   * Excessive concurrency causes a large memory footprint and slows the
   * execution speed down (with JDK 1.5).  Thus, we use a jumbo lock for
   * reducing concrrency.
   */
  // synchronized (proxyCache) {
    HashMap cacheForTheLoader = (HashMap)proxyCache.get(cl);
    ProxyDetails details;
    if (cacheForTheLoader == null) {
      cacheForTheLoader = new HashMap();
      proxyCache.put(cl, cacheForTheLoader);
    }
    details = (ProxyDetails)cacheForTheLoader.get(key);
    if (details != null) {
      WeakReference reference = details.proxyClass;
      thisClass = (Class)reference.get();
      if (thisClass != null) {
        return;
      }
    }
    createClass3(cl);
    details = new  ProxyDetails(signature, thisClass, factoryWriteReplace);
    cacheForTheLoader.put(key, details);
  // }
}
origin: org.jboss.javassist/com.springsource.javassist

private void createClass2(ClassLoader cl) {
  String key = getKey(superClass, interfaces, signature, factoryWriteReplace);
  /*
   * Excessive concurrency causes a large memory footprint and slows the
   * execution speed down (with JDK 1.5).  Thus, we use a jumbo lock for
   * reducing concrrency.
   */
  // synchronized (proxyCache) {
    HashMap cacheForTheLoader = (HashMap)proxyCache.get(cl);
    ProxyDetails details;
    if (cacheForTheLoader == null) {
      cacheForTheLoader = new HashMap();
      proxyCache.put(cl, cacheForTheLoader);
    }
    details = (ProxyDetails)cacheForTheLoader.get(key);
    if (details != null) {
      WeakReference reference = details.proxyClass;
      thisClass = (Class)reference.get();
      if (thisClass != null) {
        return;
      }
    }
    createClass3(cl);
    details = new  ProxyDetails(signature, thisClass, factoryWriteReplace);
    cacheForTheLoader.put(key, details);
  // }
}
origin: com.eclipsesource.jaxrs/jersey-all

private void createClass2(ClassLoader cl) {
  String key = getKey(superClass, interfaces, signature, factoryWriteReplace);
  /*
   * Excessive concurrency causes a large memory footprint and slows the
   * execution speed down (with JDK 1.5).  Thus, we use a jumbo lock for
   * reducing concrrency.
   */
  // synchronized (proxyCache) {
    HashMap cacheForTheLoader = (HashMap)proxyCache.get(cl);
    ProxyDetails details;
    if (cacheForTheLoader == null) {
      cacheForTheLoader = new HashMap();
      proxyCache.put(cl, cacheForTheLoader);
    }
    details = (ProxyDetails)cacheForTheLoader.get(key);
    if (details != null) {
      WeakReference reference = details.proxyClass;
      thisClass = (Class)reference.get();
      if (thisClass != null) {
        return;
      }
    }
    createClass3(cl);
    details = new  ProxyDetails(signature, thisClass, factoryWriteReplace);
    cacheForTheLoader.put(key, details);
  // }
}
origin: redisson/redisson

private void createClass2(ClassLoader cl) {
  String key = getKey(superClass, interfaces, signature, factoryWriteReplace);
  /*
   * Excessive concurrency causes a large memory footprint and slows the
   * execution speed down (with JDK 1.5).  Thus, we use a jumbo lock for
   * reducing concrrency.
   */
  // synchronized (proxyCache) {
    HashMap cacheForTheLoader = (HashMap)proxyCache.get(cl);
    ProxyDetails details;
    if (cacheForTheLoader == null) {
      cacheForTheLoader = new HashMap();
      proxyCache.put(cl, cacheForTheLoader);
    }
    details = (ProxyDetails)cacheForTheLoader.get(key);
    if (details != null) {
      WeakReference reference = details.proxyClass;
      thisClass = (Class)reference.get();
      if (thisClass != null) {
        return;
      }
    }
    createClass3(cl);
    details = new  ProxyDetails(signature, thisClass, factoryWriteReplace);
    cacheForTheLoader.put(key, details);
  // }
}
javassist.util.proxyProxyFactory$ProxyDetails

Javadoc

used to store details of a specific proxy class in the second tier of the proxy cache. this entry will be located in a hashmap keyed by the unique identifying name of the proxy class. the hashmap is located in a weak hashmap keyed by the classloader common to all proxy classes in the second tier map.

Most used methods

  • <init>

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JFrame (javax.swing)
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now