Copyright © 2009, 2010 Nu Echo Inc. All Rights Reserved.

com.nuecho.application.grammarserver.servlets
Class DefaultContextInitializer

java.lang.Object
  extended by com.nuecho.application.grammarserver.servlets.DefaultContextInitializer
All Implemented Interfaces:
ContextInitializer

public final class DefaultContextInitializer
extends java.lang.Object
implements ContextInitializer

Implementation of ContextInitializer that puts the value associated with each key in the parameterMap. When the parameterMap is provided by a servlet, the value is an array of String objects.

Version:
2.0.0
See Also:
ContextInitializer

Constructor Summary
DefaultContextInitializer()
           
 
Method Summary
 java.util.Map getContext(java.util.Map parameters, GrammarFragmentFactory factory, CacheControl control)
          Computes an instantiation context from a map of parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultContextInitializer

public DefaultContextInitializer()
Method Detail

getContext

public java.util.Map getContext(java.util.Map parameters,
                                GrammarFragmentFactory factory,
                                CacheControl control)
Description copied from interface: ContextInitializer
Computes an instantiation context from a map of parameters. Each parameter name (a string) is bound to an array of values (an array of Java strings).

Specified by:
getContext in interface ContextInitializer
Parameters:
parameters - the input parameters
factory - a grammar fragment factory object
control - a cache control object
Returns:
the instantiation context that maps strings to objects.

Copyright © 2009, 2010 Nu Echo Inc. All Rights Reserved.