示例#1
0
 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);
 }
示例#2
0
 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");
        }