jodd.madvoc.component
Class ContextInjector

java.lang.Object
  extended by 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.


Field Summary
protected  ApplicationScopeInjector applicationScopeInjector
           
protected  PetiteContainer madpc
           
protected  MadvocContextScopeInjector madvocContextScopeInjector
           
protected  MadvocParamsInjector madvocParamsInjector
           
protected  ServletContextScopeInjector servletContextScopeInjector
           
 
Constructor Summary
ContextInjector()
           
 
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
 

Field Detail

madpc

@PetiteInject
protected PetiteContainer madpc

applicationScopeInjector

protected ApplicationScopeInjector applicationScopeInjector

madvocContextScopeInjector

protected MadvocContextScopeInjector madvocContextScopeInjector

servletContextScopeInjector

protected ServletContextScopeInjector servletContextScopeInjector

madvocParamsInjector

protected MadvocParamsInjector madvocParamsInjector
Constructor Detail

ContextInjector

public ContextInjector()
Method Detail

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