|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OpenWebBeansPlugin
Interface which all OpenWebBeans plugins has 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| Method Summary | ||
|---|---|---|
|
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. |
|
| Method Detail |
|---|
void startUp()
throws Exception
WebBeansConfigurationException
Exception
void shutDown()
throws Exception
WebBeansConfigurationException
Exception
void isManagedBean(Class<?> clazz)
throws Exception
WebBeansConfigurationException
clazz - the class to check
WebBeansConfigurationException - if the given clazz cannot be used as simple web bean.
Exceptionboolean supportService(Class<?> serviceClass)
serviceClass - any service class
boolean supportsJavaEeComponentInjections(Class<?> targetClass)
targetClass - any target class
<T> T getSupportedService(Class<T> serviceClass)
T - typeserviceClass - service class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||