org.ogf.graap.wsag.server.monitoring
Class JEXLWSAG4JContext

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,Object>
          extended by org.ogf.graap.wsag.server.monitoring.JEXLWSAG4JContext
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>, org.apache.commons.jexl2.JexlContext

public class JEXLWSAG4JContext
extends HashMap<String,Object>
implements org.apache.commons.jexl2.JexlContext

An implementation of the JexlContext. In contrast to the default implementation this specific implementation throws an IllegalStateException if a non-existing variable is resolved from the context. This prevents that default values are used for non-existing variables during expression evaluation.

Author:
Oliver Waeldrich
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
JEXLWSAG4JContext()
           
 
Method Summary
 Object get(String key)
          
 boolean has(String key)
          
 void set(String name, Object value)
          
 void setVars(Map<String,Object> map)
          Sets a list variables for this context at once.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

JEXLWSAG4JContext

public JEXLWSAG4JContext()
Method Detail

setVars

public void setVars(Map<String,Object> map)
Sets a list variables for this context at once.

Parameters:
map - the parameters to set
See Also:
JexlContext.set(String, Object)

get

public Object get(String key)

Specified by:
get in interface org.apache.commons.jexl2.JexlContext

has

public boolean has(String key)

Specified by:
has in interface org.apache.commons.jexl2.JexlContext
See Also:
JexlContext.has(java.lang.String)

set

public void set(String name,
                Object value)

Specified by:
set in interface org.apache.commons.jexl2.JexlContext
See Also:
JexlContext.set(java.lang.String, java.lang.Object)


Copyright © 2008-2012. All Rights Reserved.