use of com.tvd12.ezyfox.util.EzyHashMapSet in project ezyfox-server by youngmonkeys.
the class EzyBroadcastPluginsEventImpl method getPluginContextMaps.
private EzyMapSet<EzyConstant, EzyPluginContext> getPluginContextMaps() {
Collection<EzyPluginContext> pluginContexts = context.getPluginContexts();
EzyMapSet<EzyConstant, EzyPluginContext> pluginContextMaps = new EzyHashMapSet<>();
for (EzyPluginContext pluginContext : pluginContexts) {
EzyPluginSetting pluginSetting = pluginContext.getPlugin().getSetting();
Set<EzyConstant> listenEvents = pluginSetting.getListenEvents().getEvents();
for (EzyConstant listenEvent : listenEvents) {
pluginContextMaps.addItem(listenEvent, pluginContext);
}
}
return pluginContextMaps;
}
Aggregations