public class EzySimpleZoneContext extends EzyAbstractComplexContext implements EzyZoneContext, EzyChildContext
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,EzyAppContext> |
appContextsByName |
protected EzyBroadcastAppsEvent |
broadcastAppsEvent |
protected EzyBroadcastEvent |
broadcastEvent |
protected EzyBroadcastPluginsEvent |
broadcastPluginsEvent |
protected EzyServerContext |
parent |
protected Map<String,EzyPluginContext> |
pluginContextsByName |
protected EzyZone |
zone |
appContexts, appContextsById, pluginContexts, pluginContextsByIdcommandSuppliers, component, handleException, logger| Constructor and Description |
|---|
EzySimpleZoneContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAppContext(EzyAppSetting app,
EzyAppContext appContext) |
void |
addPluginContext(EzyPluginSetting plugin,
EzyPluginContext pluginContext) |
void |
broadcast(com.tvd12.ezyfox.constant.EzyConstant eventType,
EzyEvent event,
boolean catchExeption) |
void |
broadcastApps(com.tvd12.ezyfox.constant.EzyConstant type,
EzyEvent event,
boolean catchException) |
void |
broadcastApps(com.tvd12.ezyfox.constant.EzyConstant type,
EzyEvent event,
EzyUser user,
boolean catchException) |
void |
broadcastApps(com.tvd12.ezyfox.constant.EzyConstant type,
EzyEvent event,
Predicate<EzyAppContext> filter,
boolean catchException) |
void |
broadcastApps(com.tvd12.ezyfox.constant.EzyConstant type,
EzyEvent event,
String username,
boolean catchException) |
void |
broadcastPlugins(com.tvd12.ezyfox.constant.EzyConstant type,
EzyEvent event,
boolean catchException) |
protected void |
clearProperties() |
<T> T |
cmd(Class<T> clazz) |
protected void |
destroyComponents() |
boolean |
equals(Object obj) |
<T> T |
get(Class<T> clazz) |
EzyAppContext |
getAppContext(String appName) |
EzyPluginContext |
getPluginContext(String pluginName) |
int |
hashCode() |
protected void |
init0() |
protected void |
preDestroy() |
void |
send(EzyResponse response,
Collection<EzySession> recipients,
boolean encrypted,
EzyTransportType transportType) |
void |
send(EzyResponse response,
EzySession recipient,
boolean encrypted,
EzyTransportType transportType) |
void |
setZone(EzyZone zone) |
void |
stream(byte[] bytes,
Collection<EzySession> recipients,
EzyTransportType transportType) |
void |
stream(byte[] bytes,
EzySession recipient,
EzyTransportType transportType) |
addAppContexts, addPluginContexts, destroy, getAppContext, getAppContexts, getPluginContext, getPluginContextsaddCommand, addCommandSuppliers, defaultCommandSuppliers, handleEvent, handleException, init, postDestroycontainsKey, getProperties, getProperty, getProperty, removeProperty, setProperties, setPropertyclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetParent, getZonegetAppContext, getPluginContext, send, send, send, send, stream, streamhandleEvent, handleExceptionremoveProperty, setProperties, setPropertycontainsKey, getProperties, getProperty, getProperty, getPropertygetPluginContextsgetAppContextsgetParentprotected EzyZone zone
protected EzyServerContext parent
protected EzyBroadcastEvent broadcastEvent
protected EzyBroadcastAppsEvent broadcastAppsEvent
protected EzyBroadcastPluginsEvent broadcastPluginsEvent
protected final Map<String,EzyAppContext> appContextsByName
protected final Map<String,EzyPluginContext> pluginContextsByName
protected void init0()
init0 in class EzyAbstractContextpublic <T> T get(Class<T> clazz)
get in interface EzyContextpublic <T> T cmd(Class<T> clazz)
cmd in interface EzyContextpublic void broadcast(com.tvd12.ezyfox.constant.EzyConstant eventType,
EzyEvent event,
boolean catchExeption)
broadcast in interface EzyComplexContextpublic void broadcastPlugins(com.tvd12.ezyfox.constant.EzyConstant type,
EzyEvent event,
boolean catchException)
broadcastPlugins in interface EzyZoneContextpublic void broadcastApps(com.tvd12.ezyfox.constant.EzyConstant type,
EzyEvent event,
boolean catchException)
broadcastApps in interface EzyZoneContextpublic void broadcastApps(com.tvd12.ezyfox.constant.EzyConstant type,
EzyEvent event,
String username,
boolean catchException)
broadcastApps in interface EzyZoneContextpublic void broadcastApps(com.tvd12.ezyfox.constant.EzyConstant type,
EzyEvent event,
EzyUser user,
boolean catchException)
broadcastApps in interface EzyZoneContextpublic void broadcastApps(com.tvd12.ezyfox.constant.EzyConstant type,
EzyEvent event,
Predicate<EzyAppContext> filter,
boolean catchException)
broadcastApps in interface EzyZoneContextpublic void addAppContext(EzyAppSetting app, EzyAppContext appContext)
addAppContext in class EzyAbstractComplexContextpublic void addPluginContext(EzyPluginSetting plugin, EzyPluginContext pluginContext)
addPluginContext in class EzyAbstractComplexContextpublic EzyAppContext getAppContext(String appName)
getAppContext in interface EzyZoneContextpublic EzyPluginContext getPluginContext(String pluginName)
getPluginContext in interface EzyZoneContextpublic void setZone(EzyZone zone)
public void send(EzyResponse response, EzySession recipient, boolean encrypted, EzyTransportType transportType)
send in interface EzyComplexContextpublic void send(EzyResponse response, Collection<EzySession> recipients, boolean encrypted, EzyTransportType transportType)
send in interface EzyComplexContextpublic void stream(byte[] bytes,
EzySession recipient,
EzyTransportType transportType)
stream in interface EzyComplexContextpublic void stream(byte[] bytes,
Collection<EzySession> recipients,
EzyTransportType transportType)
stream in interface EzyComplexContextprotected void destroyComponents()
destroyComponents in class EzyAbstractComplexContextprotected void clearProperties()
clearProperties in class EzyAbstractComplexContextprotected void preDestroy()
preDestroy in class EzyAbstractContextCopyright © 2021 Young Monkeys. All rights reserved.