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 values from various 'global' scopes. They can be used for interceptors and results, too.


Field Summary
protected  ApplicationScopeInjector applicationScopeInjector
           
protected  PetiteContainer madpc
           
protected  MadvocContextScopeInjector madvocContextScopeInjector
           
protected  ServletContextScopeInjector servletContextScopeInjector
           
 
Constructor Summary
ContextInjector()
           
 
Method Summary
 ApplicationScopeInjector getApplicationScopeInjector()
           
 MadvocContextScopeInjector getMadvocContextScopeInjector()
           
 ServletContextScopeInjector getServletContextScopeInjector()
           
 void injectContext(java.lang.Object target, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
          Performs default context injection.
 void injectContext(java.lang.Object target, javax.servlet.ServletContext servletContext)
          Performs context injection when only servlet context is available.
 
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
Constructor Detail

ContextInjector

public ContextInjector()
Method Detail

getApplicationScopeInjector

public ApplicationScopeInjector getApplicationScopeInjector()

getMadvocContextScopeInjector

public MadvocContextScopeInjector getMadvocContextScopeInjector()

getServletContextScopeInjector

public ServletContextScopeInjector getServletContextScopeInjector()

injectContext

public void injectContext(java.lang.Object target,
                          javax.servlet.http.HttpServletRequest servletRequest,
                          javax.servlet.http.HttpServletResponse servletResponse)
Performs default context injection.


injectContext

public void injectContext(java.lang.Object target,
                          javax.servlet.ServletContext servletContext)
Performs context injection when only servlet context is available. Should be called for all global instances (such as interceptors).



Copyright © 2003-2010 Jodd Team