org.granite.tide.util
Class AbstractContext

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,Object>
          extended by org.granite.tide.util.AbstractContext
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>
Direct Known Subclasses:
Context

public abstract class AbstractContext
extends HashMap<String,Object>

Author:
Franck WOLFF
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
protected AbstractContext(Map<String,Set<Method>> observers)
           
 
Method Summary
protected abstract  Object callMethod(Method method, Object... args)
           
 List<ContextEvent> getRemoteEvents()
           
protected abstract  Set<String> getRemoteObservers()
           
static AbstractContext instance()
           
static void raiseEvent(String name, Object... args)
           
static void remove()
           
 
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

AbstractContext

protected AbstractContext(Map<String,Set<Method>> observers)
Method Detail

getRemoteEvents

public List<ContextEvent> getRemoteEvents()

getRemoteObservers

protected abstract Set<String> getRemoteObservers()

callMethod

protected abstract Object callMethod(Method method,
                                     Object... args)
                              throws Exception
Throws:
Exception

instance

public static AbstractContext instance()

raiseEvent

public static void raiseEvent(String name,
                              Object... args)

remove

public static void remove()