public EzySimpleZone(EzyClient client, int id, String name) { this.id = id; this.name = name; this.client = client; this.appManager = new EzySimpleAppManager(name); this.pluginManager = new EzySimplePluginManager(name); }
public EzyPlugin getPluginById(int pluginId) { if (zone != null) { EzyPluginManager pluginManager = zone.getPluginManager(); EzyPlugin plugin = pluginManager.getPluginById(pluginId); return(plugin); } return(null); }
public override void handle(EzyArray data) { EzyZone zone = client.getZone(); EzyPluginManager pluginManager = zone.getPluginManager(); EzyPlugin plugin = newPlugin(zone, data); pluginManager.addPlugin(plugin); postHandle(plugin, data); logger.info("access plugin: " + plugin.getName() + " successfully"); }