Codota Logo
PluginLoader.shutDown
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
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

  • Finding current android device location
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now