public interface OpenWebBeansPlugin
Interface which all OpenWebBeans plugins have to implement to extend the webbeans-core with additional IOC functionality.
There are 4 different types of functions for this interface:
#startUp()
and #shutDown()
#injectResource(Type, Annotation[])
for documentation of the whole mechanism
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.
|
void startUp()
void shutDown()
WebBeansConfigurationException
void isManagedBean(Class<?> clazz)
WebBeansConfigurationException
clazz
- the class to checkWebBeansConfigurationException
- if the given clazz cannot be used as simple web bean.boolean supportService(Class<?> serviceClass)
serviceClass
- any service classboolean supportsJavaEeComponentInjections(Class<?> targetClass)
targetClass
- any target class<T> T getSupportedService(Class<T> serviceClass)
T
- typeserviceClass
- service classCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.