net.sourceforge.scopes.managers.impl
Class ApplicationScopeManager

java.lang.Object
  extended by net.sourceforge.scopes.managers.impl.ApplicationScopeManager
All Implemented Interfaces:
ScopeManager<javax.servlet.http.HttpServletRequest>
Direct Known Subclasses:
InitBasedApplicationScopeManager

public class ApplicationScopeManager
extends java.lang.Object
implements ScopeManager<javax.servlet.http.HttpServletRequest>

Manages application scope.


Nested Class Summary
protected  class ApplicationScopeManager.ServletContext
          Wraps a javax.servlet.ServletContext to appear as a Scopes-context.
 
Constructor Summary
ApplicationScopeManager()
           
 
Method Summary
 void configure(java.lang.String scopeName, java.util.Map<java.lang.String,java.lang.Object> parameters)
          Configures the scope manager before its real use.
 Context createContext(javax.servlet.http.HttpServletRequest request)
          Creates an application context bound to servlet context, given the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationScopeManager

public ApplicationScopeManager()
Method Detail

configure

public void configure(java.lang.String scopeName,
                      java.util.Map<java.lang.String,java.lang.Object> parameters)
Description copied from interface: ScopeManager
Configures the scope manager before its real use.

Specified by:
configure in interface ScopeManager<javax.servlet.http.HttpServletRequest>
Parameters:
scopeName - The scope name.
parameters - The map of parameters used to configure it.

createContext

public Context createContext(javax.servlet.http.HttpServletRequest request)
Creates an application context bound to servlet context, given the request.

Specified by:
createContext in interface ScopeManager<javax.servlet.http.HttpServletRequest>
Parameters:
request - The request to use.
Returns:
The created context.