Package org.xmlBlaster.engine.runlevel

Examples of org.xmlBlaster.engine.runlevel.PluginConfigSaxFactory.readObject()


    
         String xml = config.toXml();
         log.info(xml);
    
         PluginConfigSaxFactory factory = new PluginConfigSaxFactory(this.glob);
         config = factory.readObject(xml);
         RunLevelAction[] actions = config.getActions();
         assertEquals(me + " number of actions", 2, actions.length);
      }
      catch (XmlBlasterException e) {
         fail(ME + " failed: " + e.toString());
View Full Code Here


      String xml = "<plugin id='FilePollerPlugin' className='org.xmlBlaster.client.filepoller.FilePollerPlugin'>\n" +
                   "  <attribute id='qosTest'>" + attrVal + "</attribute>\n" +
                   "  <action do='LOAD' onStartupRunlevel='9' sequence='6' onFail='resource.configuration.pluginFailed'/>\n" +
                   "  <action do='STOP' onShutdownRunlevel='6' sequence='5'/>\n" +
                   "</plugin>\n";
      PluginConfig config = factory.readObject(xml);
      Properties prop = config.getPluginInfo().getParameters();
      String txt = prop.getProperty("qosTest", null);
      if (txt == null) {
         prop.list(System.err);
         assertTrue("the qosTest is null when it should not", false);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.