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)
WebBeansConfigurationException
isManagedBean
in interface OpenWebBeansPlugin
clazz
- the class to checkpublic boolean supportsJavaEeComponentInjections(Class<?> targetClass)
supportsJavaEeComponentInjections
in interface OpenWebBeansPlugin
targetClass
- any target classpublic void shutDown()
shutDown
in interface OpenWebBeansPlugin
public void startUp()
startUp
in interface OpenWebBeansPlugin
public boolean supportService(Class<?> serviceClass)
supportService
in interface OpenWebBeansPlugin
serviceClass
- any service classpublic <T> T getSupportedService(Class<T> serviceClass)
getSupportedService
in interface OpenWebBeansPlugin
T
- typeserviceClass
- service classCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.