Home » apache-openwebbeans-1.0.0-incubating-M3-sources » org.apache.webbeans.plugins » [javadoc | source]
org.apache.webbeans.plugins
public class: PluginLoader [javadoc | source]
java.lang.Object
   org.apache.webbeans.plugins.PluginLoader

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

TODO: what about ordering the plugins via an ordinal?
Constructor:
 public PluginLoader() 
Method from org.apache.webbeans.plugins.PluginLoader Summary:
getEjbPlugin,   getInstance,   getJmsPlugin,   getPlugins,   getResourcePlugin,   shutDown,   startUp
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.webbeans.plugins.PluginLoader Detail:
 public OpenWebBeansEjbPlugin getEjbPlugin() 
    Gets ejb plugin
 public static PluginLoader getInstance() 
 public OpenWebBeansJmsPlugin getJmsPlugin() 
    Gets ejb plugin
 public List<OpenWebBeansPlugin> getPlugins() 
 public OpenWebBeansResourcePlugin getResourcePlugin() 
    Gets ejb plugin
 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.
 public  void startUp() throws WebBeansConfigurationException 
    load and startup all registered plugins. This must be called once the WebApplication is started.