Codota Logo
PluginLoader
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using org.apache.webbeans.plugins.PluginLoader (Showing top 20 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.openejb/openejb-core

public CdiResourceInjectionService(final WebBeansContext context) {
  ejbPlugin = CdiPlugin.class.cast(context.getPluginLoader().getEjbPlugin());
}
origin: org.apache.openwebbeans/openwebbeans-impl

webBeansContext.getPluginLoader().startUp();
origin: org.apache.openwebbeans/openwebbeans-impl

private boolean isEEComponent(Class<?> impl)
{
  OpenWebBeansJavaEEPlugin eePlugin = webBeansContext.getPluginLoader().getJavaEEPlugin();
  return eePlugin != null && eePlugin.isEEComponent(impl);
}
origin: org.apache.openwebbeans/openwebbeans-impl

List<OpenWebBeansPlugin> plugins = webBeansContext.getPluginLoader().getPlugins();
for (OpenWebBeansPlugin plugin : plugins)
    PluginLoader.throwsException(e);
origin: org.apache.openejb/openejb-core

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

webBeansContext.getPluginLoader().startUp();
final CdiPlugin cdiPlugin = (CdiPlugin) webBeansContext.getPluginLoader().getEjbPlugin();
origin: org.apache.openwebbeans/openwebbeans-impl

OpenWebBeansEjbPlugin ejbPlugin = webBeansContext.getPluginLoader().getEjbPlugin();
if(ejbPlugin == null)
OpenWebBeansJmsPlugin jmsPlugin = webBeansContext.getPluginLoader().getJmsPlugin();
if(jmsPlugin == null)
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.openwebbeans/openwebbeans-impl

List<OpenWebBeansPlugin> plugins = webBeansContext.getPluginLoader().getPlugins();
for (OpenWebBeansPlugin plugin : plugins)
origin: org.apache.openwebbeans/openwebbeans-impl

protected InterceptorBeanBuilder(WebBeansContext webBeansContext, AnnotatedType<T> annotatedType, BeanAttributes<T> beanAttributes)
{
  Asserts.assertNotNull(webBeansContext, Asserts.PARAM_NAME_WEBBEANSCONTEXT);
  Asserts.assertNotNull(annotatedType, "annotated type");
  Asserts.assertNotNull(beanAttributes, "beanAttributes");
  this.webBeansContext = webBeansContext;
  this.annotatedType = annotatedType;
  this.beanAttributes = beanAttributes;
  ejbPlugin = webBeansContext.getPluginLoader().getEjbLCAPlugin();
  if (ejbPlugin != null)
  {
    prePassivateClass = ejbPlugin.getPrePassivateClass();
    postActivateClass = ejbPlugin.getPostActivateClass();
  }
  else
  {
    prePassivateClass = null;
    postActivateClass = null;
  }
}
origin: org.apache.tomee/openejb-core

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

webBeansContext.getPluginLoader().startUp();
final CdiPlugin cdiPlugin = (CdiPlugin) webBeansContext.getPluginLoader().getEjbPlugin();
origin: org.apache.openwebbeans/openwebbeans-impl

webBeansContext.getPluginLoader().shutDown();
origin: org.apache.openwebbeans/openwebbeans-impl

private <T> T doServiceLoader(Class<T> serviceInterface)
{
  String implName = getOpenWebBeansConfiguration().getProperty(serviceInterface.getName());
  if (implName == null)
  {
    //Look for plugins
    List<OpenWebBeansPlugin> plugins = getPluginLoader().getPlugins();
    if(plugins != null && plugins.size() > 0)
    {
      for(OpenWebBeansPlugin plugin : plugins)
      {
        if(plugin.supportService(serviceInterface))
        {
          return plugin.getSupportedService(serviceInterface);
        }
      }
    }
    return null;
  }
  return serviceInterface.cast(get(implName));
}
origin: org.apache.tomee/openejb-core

private static Map<Class<?>, BeanContext> pluginBeans(final WebBeansContext ctx) {
  return CdiPlugin.class.cast(ctx.getPluginLoader().getEjbPlugin()).beans;
}
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.openwebbeans/openwebbeans-impl

OpenWebBeansJavaEEPlugin beanEeProvider = webBeansContext.getPluginLoader().getJavaEEPlugin();
origin: org.apache.openejb/openejb-core

private static Map<Class<?>, BeanContext> pluginBeans(final WebBeansContext ctx) {
  return CdiPlugin.class.cast(ctx.getPluginLoader().getEjbPlugin()).beans;
}
origin: org.apache.tomee/openejb-core

public CdiResourceInjectionService(final WebBeansContext context) {
  ejbPlugin = CdiPlugin.class.cast(context.getPluginLoader().getEjbPlugin());
}
origin: org.apache.openejb/openejb-core

public void setWebBeansContext(final WebBeansContext webBeansContext) {
  this.webBeansContext = webBeansContext;
  if (!WebappWebBeansContext.class.isInstance(webBeansContext)) {
    cacheProxies = new ConcurrentHashMap<Contextual<?>, Object>();
  } else { // share cache of proxies between the whole app otherwise hard to share an EJB between a webapp and the lib part of the app
    cacheProxies = CdiPlugin.class.cast(WebappWebBeansContext.class.cast(webBeansContext).getParent().getPluginLoader().getEjbPlugin()).cacheProxies;
  }
}
org.apache.webbeans.pluginsPluginLoader

Javadoc

OpenWebBeans plugins are used to extend 'core' functionality of the injection mechanism with functionality of other frameworks.

Core functionality are all parts which are available in a standard JDK-1.5 SE runtime. Extended functionality are things like JPA, JSF, EJB etc.

The plugin mechanism is based on the ServiceProvider functionality. A jar containing an OWB plugin has to expose itself in the file META-INF/services/org.apache.webbeans.plugins.OpenWebBeansPlugin

Most used methods

  • getEjbPlugin
    Gets ejb plugin
  • shutDown
    Tell all the plugins to free up all locked resources. This must be called before the WebApplication
  • 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

  • Making http requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • onRequestPermissionsResult (Fragment)
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • BoxLayout (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
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