net.sourceforge.scopes.managers
Interface ScopeManager<T>

Type Parameters:
T - The request class.
All Known Implementing Classes:
ApplicationScopeManager, ClickScopeManager, InitBasedApplicationScopeManager, RequestScopeManager, SessionScopeManager, WindowScopeManager

public interface ScopeManager<T>

Manages a scope, that is an object that can create a context from a request.


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(T request)
          Creates a context, given the request.
 

Method Detail

configure

void configure(java.lang.String scopeName,
               java.util.Map<java.lang.String,java.lang.Object> parameters)
Configures the scope manager before its real use.

Parameters:
scopeName - The scope name.
parameters - The map of parameters used to configure it.

createContext

Context createContext(T request)
Creates a context, given the request.

Parameters:
request - The request to use.
Returns:
The created context.