public abstract class AbstractContext extends HashMap<String,Object>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
AbstractContext(Map<String,Set<Method>> observers) |
| Modifier and Type | Method and Description |
|---|---|
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() |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringprotected AbstractContext(Map<String,Set<Method>> observers)
public List<ContextEvent> getRemoteEvents()
protected abstract Set<String> getRemoteObservers()
protected abstract Object callMethod(Method method, Object... args) throws Exception
Exceptionpublic static AbstractContext instance()
public static void raiseEvent(String name, Object... args)
public static void remove()