net.sourceforge.scopes.managers.impl
Class SimpleScopeManagerConfigurator<T extends javax.servlet.ServletRequest>

java.lang.Object
  extended by net.sourceforge.scopes.managers.impl.SimpleScopeManagerConfigurator<T>
Type Parameters:
T -
All Implemented Interfaces:
ScopeManagerConfigurator<T>

public class SimpleScopeManagerConfigurator<T extends javax.servlet.ServletRequest>
extends java.lang.Object
implements ScopeManagerConfigurator<T>

Configures all scopes managers through the use of parameters.


Constructor Summary
SimpleScopeManagerConfigurator()
           
 
Method Summary
 java.util.Map<java.lang.String,ScopeManager<? super T>> configure(java.util.Map<java.lang.String,java.lang.Object> parameters)
          Configures the scopes managers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleScopeManagerConfigurator

public SimpleScopeManagerConfigurator()
Method Detail

configure

public java.util.Map<java.lang.String,ScopeManager<? super T>> configure(java.util.Map<java.lang.String,java.lang.Object> parameters)
                                                                                                       throws ScopesException
Configures the scopes managers.

Specified by:
configure in interface ScopeManagerConfigurator<T extends javax.servlet.ServletRequest>
Parameters:
parameters - Map containing the parameters. It must contain:
  • "manager-scope-names" -> comma-separated list of scope names, in order of evaluation;
  • "manager-class-names" -> comma-separated list of class names, each corresponding the scope in the same position specified in the previous parameter.
Returns:
A map of type: scope name -> scope manager.
Throws:
ScopesException - If something goes wrong.
See Also:
ScopeManagerConfigurator.configure(Map)