|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
X - T - public interface Context

| Method Summary | ||
|---|---|---|
|
add(Class<B> type,
B instance)
Add a instance of B to the context. |
|
void |
fire(Event event)
Fire a new Event. |
|
|
get(Class<B> type)
Get a instance of B from the context. |
|
Context |
getParentContext()
Get this contexts parent context. |
|
ServiceLoader |
getServiceLoader()
Get the defined ServiceLoader |
|
|
register(Class<? extends K> eventType,
EventHandler<? super K> handler)
Register a EventHandler for a specific Event. |
|
| Method Detail |
|---|
void fire(Event event)
Event.
event - The Event instance to fire
<K extends Event> void register(Class<? extends K> eventType,
EventHandler<? super K> handler)
EventHandler for a specific Event.
K - eventType - The Type of Event to listen tohandler - The receiver of the EventServiceLoader getServiceLoader()
ServiceLoader
ServiceLoaderget(Class)Context getParentContext()
<B> void add(Class<B> type,
B instance)
B - type - The Type of the instance to addinstance - The instance to add<B> B get(Class<B> type)
B - type - Type to lookup
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||