jodd.madvoc.component
Class ContextInjector
java.lang.Object
jodd.madvoc.component.ContextInjector
public class ContextInjector
- extends java.lang.Object
Set of injectors that can inject/outject values using various 'global' scopes.
They can be used for interceptors
and results, too.
|
Method Summary |
void |
injectContext(java.lang.Object target,
javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse,
boolean injectParams)
Performs default context injection. |
void |
injectContext(java.lang.Object target,
javax.servlet.ServletContext servletContext,
boolean injectParams)
Performs context injection when only servlet context is available. |
void |
outjectContext(java.lang.Object target,
javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
Outjects context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
madpc
@PetiteInject
protected PetiteContainer madpc
applicationScopeInjector
protected ApplicationScopeInjector applicationScopeInjector
madvocContextScopeInjector
protected MadvocContextScopeInjector madvocContextScopeInjector
servletContextScopeInjector
protected ServletContextScopeInjector servletContextScopeInjector
madvocParamsInjector
protected MadvocParamsInjector madvocParamsInjector
ContextInjector
public ContextInjector()
injectContext
public void injectContext(java.lang.Object target,
javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse,
boolean injectParams)
- Performs default context injection.
injectContext
public void injectContext(java.lang.Object target,
javax.servlet.ServletContext servletContext,
boolean injectParams)
- Performs context injection when only servlet context is available. Should be called for all
global instances (such as interceptors).
outjectContext
public void outjectContext(java.lang.Object target,
javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
- Outjects context.
Copyright © 2003-2012 Jodd Team