public EzyPlugin getPlugin() { if (zone != null) { EzyPluginManager pluginManager = zone.getPluginManager(); EzyPlugin plugin = pluginManager.getPlugin(); 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"); }