Package jNab.core.plugins

Examples of jNab.core.plugins.AbstractPlugin


  int pluginCount = dis.readInt();

  for (int i = 0; i < pluginCount; i++)
  {
      // Reading plugin
      AbstractPlugin plugin = null;
      try
      {
    plugin = this.readPluginFromInputStream(dis, pluginFactory);
      }
      catch (PluginCreationException e)
      {
    continue;
      }

      // Adding plugin
      plugin.setBunny(bunny);
      bunny.addPlugin(plugin);
  }

  return bunny;
    }
View Full Code Here


      // Adding parameter to temp map
      parameters.put(parameterName, new Couple<Boolean, String>(isParameterSet, parameterValue));
  }

  // Creating a plugin instance
  AbstractPlugin plugin = pluginFactory.createPlugin(pluginName);
  plugin.setParameters(parameters);

  return plugin;
    }
View Full Code Here

  String pluginName = cmdParameters.substring(indexOfSpace).trim();

  try
  {
      Bunny bunny = this.microServer.getBurrow().getBunny(bunnySerial);
      AbstractPlugin plugin = bunny.getPluginByName(pluginName);
      bunny.removePlugin(plugin);
      ps.println("OK");
  }
  catch (NoSuchBunnyException e)
  {
View Full Code Here

  String paramValue = cmdParameters.substring(indexOfSpace).trim();

  try
  {
      Bunny bunny = this.microServer.getBurrow().getBunny(bunnySerial);
      AbstractPlugin plugin = bunny.getPluginByName(pluginName);
      if (plugin.setParameter(paramName, paramValue))
    ps.println("KO (no such parameter)");
      else
    ps.println("OK");
  }
  catch (NoSuchBunnyException e)
View Full Code Here

  String pluginName = cmdParameters.substring(indexOfSpace).trim();

  try
  {
      Bunny bunny = this.microServer.getBurrow().getBunny(bunnySerial);
      AbstractPlugin plugin = this.microServer.getPluginFactory().createPlugin(pluginName);
      bunny.addPlugin(plugin);
      ps.println("OK");
  }
  catch (NoSuchBunnyException e)
  {
View Full Code Here

TOP

Related Classes of jNab.core.plugins.AbstractPlugin

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.