public abstract class AbstractOwbPlugin extends Object implements OpenWebBeansPlugin
OpenWebBeansPlugin interface
contract.
This abstraction provides the empty implementation for the interface. If any subclass of this class wants to define customize method, it has to override related method definition.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOwbPlugin() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getSupportedService(Class<T> serviceClass)
Gets service instance.
|
void |
isManagedBean(Class<?> clazz)
Make sure that the given class is ok for simple web bean conditions,
otherwise throw a
WebBeansConfigurationException |
void |
shutDown()
At shutdown, the plugin must release all locked resources.
|
void |
startUp()
initialise the plugin.
|
boolean |
supportService(Class<?> serviceClass)
Returns true if plugin provides given service implementation
false otherwise.
|
boolean |
supportsJavaEeComponentInjections(Class<?> targetClass)
Returns true if given class supports injections,
false otherwise.
|
public void isManagedBean(Class<?> clazz)
WebBeansConfigurationExceptionisManagedBean in interface OpenWebBeansPluginclazz - the class to checkpublic boolean supportsJavaEeComponentInjections(Class<?> targetClass)
supportsJavaEeComponentInjections in interface OpenWebBeansPlugintargetClass - any target classpublic void shutDown()
shutDown in interface OpenWebBeansPluginpublic void startUp()
startUp in interface OpenWebBeansPluginpublic boolean supportService(Class<?> serviceClass)
supportService in interface OpenWebBeansPluginserviceClass - any service classpublic <T> T getSupportedService(Class<T> serviceClass)
getSupportedService in interface OpenWebBeansPluginT - typeserviceClass - service classCopyright © 2008–2018 The Apache Software Foundation. All rights reserved.