Tabnine Logo
ReloadingClassLoader.destroy
Code IndexAdd Tabnine to your IDE (free)

How to use
destroy
method
in
org.apache.wicket.application.ReloadingClassLoader

Best Java code snippets using org.apache.wicket.application.ReloadingClassLoader.destroy (Showing top 4 results out of 315)

origin: org.ops4j.pax.wicket/pax-wicket-service

  public void onChange()
  {
    // Remove the ModificationWatcher from the current reloading class loader
    reloadingClassLoader.destroy();
    /*
     * Create a new classloader, as there is no way to clear a ClassLoader's cache. This
     * supposes that we don't share objects across application instances, this is almost
     * true, except for Wicket's Session object.
     */
    reloadingClassLoader = new ReloadingClassLoader(getClass().getClassLoader());
    try
    {
      init(filterConfig);
    }
    catch (ServletException e)
    {
      throw new RuntimeException(e);
    }
  }
});
origin: org.apache.wicket/com.springsource.org.apache.wicket

  public void onChange()
  {
    // Remove the ModificationWatcher from the current reloading class loader
    reloadingClassLoader.destroy();
    /*
     * Create a new classloader, as there is no way to clear a ClassLoader's cache. This
     * supposes that we don't share objects across application instances, this is almost
     * true, except for Wicket's Session object.
     */
    reloadingClassLoader = new ReloadingClassLoader(getClass().getClassLoader());
    try
    {
      init(filterConfig);
    }
    catch (ServletException e)
    {
      throw new RuntimeException(e);
    }
  }
});
origin: org.apache.wicket/wicket-core

  @Override
  public void onChange(Class<?> clz)
  {
    destroy();
    // Remove the ModificationWatcher from the current reloading class loader
    reloadingClassLoader.destroy();
    /*
     * Create a new classloader, as there is no way to clear a ClassLoader's cache. This
     * supposes that we don't share objects across application instances, this is almost
     * true, except for Wicket's Session object.
     */
    reloadingClassLoader = new ReloadingClassLoader(getClass().getClassLoader());
    try
    {
      init(filterConfig);
    }
    catch (ServletException e)
    {
      throw new RuntimeException(e);
    }
  }
});
origin: apache/wicket

  @Override
  public void onChange(Class<?> clz)
  {
    destroy();
    // Remove the ModificationWatcher from the current reloading class loader
    reloadingClassLoader.destroy();
    /*
     * Create a new classloader, as there is no way to clear a ClassLoader's cache. This
     * supposes that we don't share objects across application instances, this is almost
     * true, except for Wicket's Session object.
     */
    reloadingClassLoader = new ReloadingClassLoader(getClass().getClassLoader());
    try
    {
      init(filterConfig);
    }
    catch (ServletException e)
    {
      throw new RuntimeException(e);
    }
  }
});
org.apache.wicket.applicationReloadingClassLoaderdestroy

Javadoc

Remove the ModificationWatcher from the current reloading class loader

Popular methods of ReloadingClassLoader

  • <init>
    Create a new reloading ClassLoader from a list of URLs, and initialize the ModificationWatcher to de
  • addClassLoaderUrls
    Add all the url locations we can find for the provided class loader
  • addLocation
    Add the location of a directory containing class files
  • addURL
  • findClass
  • findLoadedClass
  • findResource
  • getParent
  • resolveClass
  • setListener
    Sets the listener that will be notified when a class changes
  • tryClassHere
  • watchForModifications
    Watch changes of a class file by locating it in the list of location URLs and adding the correspondi
  • tryClassHere,
  • watchForModifications,
  • excludePattern,
  • getLocations,
  • getPatterns,
  • includePattern

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JComboBox (javax.swing)
  • Top 17 Free Sublime Text 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