Tabnine Logo
PluginLoader.shutDown
Code IndexAdd Tabnine to your IDE (free)

How to use
shutDown
method
in
org.apache.webbeans.plugins.PluginLoader

Best Java code snippets using org.apache.webbeans.plugins.PluginLoader.shutDown (Showing top 5 results out of 315)

origin: org.apache.openwebbeans/openwebbeans-impl

webBeansContext.getPluginLoader().shutDown();
origin: org.apache.openejb/openejb-core

public void stop() throws OpenEJBException {
  final ClassLoader oldCl = Thread.currentThread().getContextClassLoader();
  try {
    // Setting context class loader for cleaning
    Thread.currentThread().setContextClassLoader(classLoader);
    // Fire shut down
    webBeansContext.getBeanManagerImpl().fireEvent(new BeforeShutdownImpl());
    // Destroys context
    this.contexsServices.destroy(null);
    // Free all plugin resources
    webBeansContext.getPluginLoader().shutDown();
    // Clear extensions
    webBeansContext.getExtensionLoader().clear();
    // Delete Resolutions Cache
    webBeansContext.getBeanManagerImpl().getInjectionResolver().clearCaches();
    // Delete AnnotateTypeCache
    webBeansContext.getAnnotatedElementFactory().clear();
    // Clear the resource injection service
    final CdiResourceInjectionService injectionServices = (CdiResourceInjectionService) webBeansContext.getService(ResourceInjectionService.class);
    injectionServices.clear();
    // Clear singleton list
    WebBeansFinder.clearInstances(WebBeansUtil.getCurrentClassLoader());
  } catch (final Exception e) {
    throw new OpenEJBException(e);
  } finally {
    Thread.currentThread().setContextClassLoader(oldCl);
  }
}
origin: org.apache.tomee/openejb-core

public void stop() throws OpenEJBException {
  final ClassLoader oldCl = Thread.currentThread().getContextClassLoader();
  try {
    // Setting context class loader for cleaning
    Thread.currentThread().setContextClassLoader(classLoader);
    // Fire shut down
    webBeansContext.getBeanManagerImpl().fireEvent(new BeforeShutdownImpl());
    // Destroys context
    webBeansContext.getContextsService().destroy(null);
    // Free all plugin resources
    webBeansContext.getPluginLoader().shutDown();
    // Clear extensions
    webBeansContext.getExtensionLoader().clear();
    // Delete Resolutions Cache
    webBeansContext.getBeanManagerImpl().getInjectionResolver().clearCaches();
    // Delete AnnotateTypeCache
    webBeansContext.getAnnotatedElementFactory().clear();
    // Clear the resource injection service
    final CdiResourceInjectionService injectionServices = (CdiResourceInjectionService) webBeansContext.getService(ResourceInjectionService.class);
    injectionServices.clear();
    // Clear singleton list
    WebBeansFinder.clearInstances(WebBeansUtil.getCurrentClassLoader());
  } catch (final Exception e) {
    throw new OpenEJBException(e);
  } finally {
    Thread.currentThread().setContextClassLoader(oldCl);
  }
}
origin: org.apache.openejb/openejb-core

webBeansContext.getPluginLoader().shutDown();
origin: org.apache.tomee/openejb-core

webBeansContext.getPluginLoader().shutDown();
org.apache.webbeans.pluginsPluginLoadershutDown

Javadoc

Tell all the plugins to free up all locked resources. This must be called before the WebApplication gets undeployed or stopped.

Popular methods of PluginLoader

  • getEjbPlugin
    Gets ejb plugin
  • startUp
    load and startup all registered plugins. This must be called once the WebApplication is started.
  • getEjbLCAPlugin
    Gets ejb lifecycle annotations plugin
  • getJavaEEPlugin
  • getJmsPlugin
    Gets the JMS plugin
  • getPlugins
  • pluginsExist
  • throwsException

Popular in Java

  • Start an intent from android
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • getApplicationContext (Context)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top plugins for WebStorm
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