All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
void |
clear(java.lang.Object key) |
java.lang.Object |
contextEntered(WebBeansContext newOWBContext) |
void |
contextExited(java.lang.Object oldContext) |
static WebBeansContext |
enter(WebBeansContext newOWBContext) |
static void |
exit(java.lang.Object oldContext) |
static WebBeansContext |
get(java.lang.ClassLoader cl)
Generally contexts.get() is enough since we set the current context from a request (see webbeanslistener)
but sometimes matching the classloader is better (manager webapps of tomcat deploys for instance)
so here the algorithm:
1) try to match with the classloader
2) if not matched try to use the threadlocal
3) (shouldn't happen) simply return the biggest webbeancontext
|
WebBeansContext |
get(java.lang.Object key) |
void |
initialize(StartupObject startupObject) |