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.
A jar containing an OWB plugin has to expose itself in the file
META-INF/services/org.apache.webbeans.plugins.OpenWebBeansPlugin
Constructor and Description |
---|
PluginLoader() |
Modifier and Type | Method and Description |
---|---|
OpenWebBeansEjbLCAPlugin |
getEjbLCAPlugin()
Gets ejb lifecycle annotations plugin
|
OpenWebBeansEjbPlugin |
getEjbPlugin()
Gets ejb plugin
|
OpenWebBeansJavaEEPlugin |
getJavaEEPlugin() |
OpenWebBeansJmsPlugin |
getJmsPlugin()
Gets the JMS plugin
|
List<OpenWebBeansPlugin> |
getPlugins() |
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) |
public void startUp() throws WebBeansConfigurationException
WebBeansConfigurationException
public static void throwsException(Exception e) throws WebBeansConfigurationException
WebBeansConfigurationException
public void shutDown() throws WebBeansConfigurationException
WebBeansConfigurationException
public List<OpenWebBeansPlugin> getPlugins()
public OpenWebBeansEjbPlugin getEjbPlugin()
public OpenWebBeansEjbLCAPlugin getEjbLCAPlugin()
public OpenWebBeansJmsPlugin getJmsPlugin()
public OpenWebBeansJavaEEPlugin getJavaEEPlugin()
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.