org.apache.webbeans.plugins
Class PluginLoader

java.lang.Object
  extended by org.apache.webbeans.plugins.PluginLoader

public class PluginLoader
extends Object

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 http://java.sun.com/javase/6/docs/technotes/guides/jar/jar.html#Service%20Provider. A jar containing an OWB plugin has to expose itself in the file META-INF/services/org.apache.webbeans.plugins.OpenWebBeansPlugin


Constructor Summary
PluginLoader()
           
 
Method Summary
 OpenWebBeansEjbLCAPlugin getEjbLCAPlugin()
          Gets ejb lifecycle annotations plugin
 OpenWebBeansEjbPlugin getEjbPlugin()
          Gets ejb plugin
static PluginLoader getInstance()
          Deprecated. 
 OpenWebBeansJavaEEPlugin getJavaEEPlugin()
           
 OpenWebBeansJmsPlugin getJmsPlugin()
          Gets the JMS plugin
 List<OpenWebBeansPlugin> getPlugins()
           
 OpenWebBeansWebPlugin getWebPlugin()
           
 boolean isShowDown()
           
 void shutDown()
          Tell all the plugins to free up all locked resources.
 void startUp()
          load and startup all registered plugins.
static void throwsException(Exception e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginLoader

public PluginLoader()
Method Detail

getInstance

@Deprecated
public static PluginLoader getInstance()
Deprecated. 

Returns:
singleton PluginLoader

startUp

public void startUp()
             throws WebBeansConfigurationException
load and startup all registered plugins. This must be called once the WebApplication is started.

Throws:
WebBeansConfigurationException

throwsException

public static void throwsException(Exception e)
                            throws WebBeansConfigurationException
Throws:
WebBeansConfigurationException

shutDown

public void shutDown()
              throws WebBeansConfigurationException
Tell all the plugins to free up all locked resources. This must be called before the WebApplication gets undeployed or stopped.

Throws:
WebBeansConfigurationException

getPlugins

public List<OpenWebBeansPlugin> getPlugins()
Returns:
an unmodifiable list of all registered {code OpenWebBeansPlugin}s

getEjbPlugin

public OpenWebBeansEjbPlugin getEjbPlugin()
Gets ejb plugin

Returns:
ejb plugin

getEjbLCAPlugin

public OpenWebBeansEjbLCAPlugin getEjbLCAPlugin()
Gets ejb lifecycle annotations plugin

Returns:
ejb LCA plugin

getJmsPlugin

public OpenWebBeansJmsPlugin getJmsPlugin()
Gets the JMS plugin

Returns:
jms plugin

getJavaEEPlugin

public OpenWebBeansJavaEEPlugin getJavaEEPlugin()

getWebPlugin

public OpenWebBeansWebPlugin getWebPlugin()

isShowDown

public boolean isShowDown()


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.