Package org.apache.log4j.plugins

Examples of org.apache.log4j.plugins.Plugin.activateOptions()


   
//    TODO this should also be fixed up, as VFS bits and pieces might not be built in an Ant build when they don't have all the VFS jars local
    try {
      Class vfsPluginClass = Class.forName("org.apache.log4j.chainsaw.vfs.VFSPlugin");
      Plugin vfsPlugin = (Plugin) vfsPluginClass.newInstance();
      vfsPlugin.activateOptions();
      pluginRegistry.addPlugin(vfsPlugin);
      MessageCenter.getInstance().getLogger().info("Looks like VFS is available... WooHoo!");
    } catch (Throwable e) {
      MessageCenter.getInstance().getLogger().error("Doesn't look like VFS is available", e);
    }
View Full Code Here


                    new ActionListener() {
                      public void actionPerformed(ActionEvent e2) {
                        dialog.dispose();
                        Plugin plugin = panel.getPlugin();
                        pluginRegistry.addPlugin(plugin);
                        plugin.activateOptions();
                        MessageCenter.getInstance().addMessage("Plugin '" + plugin.getName() + "' started");
                      }
                    });
                  dialog.show();
                } catch (Exception e1) {
View Full Code Here

                    new ActionListener() {
                      public void actionPerformed(ActionEvent e2) {
                        dialog.dispose();
                        Plugin plugin = panel.getPlugin();
                        pluginRegistry.addPlugin(plugin);
                        plugin.activateOptions();
                        MessageCenter.getInstance().addMessage("Plugin '" + plugin.getName() + "' started");
                      }
                    });
                  dialog.show();
                } catch (Exception e1) {
View Full Code Here

      } else if (tagName.equals(PLUGIN_TAG)) {
        Plugin plugin = parsePlugin(currentElement);

        if (plugin != null) {
          repository.getPluginRegistry().addPlugin(plugin);
          plugin.activateOptions();
        }
      }
    }

    // let listeners know the configuration just changed
View Full Code Here

   
//    TODO this should also be fixed up, as VFS bits and pieces might not be built in an Ant build when they don't have all the VFS jars local
    try {
      Class vfsPluginClass = Class.forName("org.apache.log4j.chainsaw.vfs.VFSPlugin");
      Plugin vfsPlugin = (Plugin) vfsPluginClass.newInstance();
      vfsPlugin.activateOptions();
      pluginRegistry.addPlugin(vfsPlugin);
      MessageCenter.getInstance().getLogger().info("Looks like VFS is available... WooHoo!");
    } catch (Throwable e) {
      MessageCenter.getInstance().getLogger().error("Doesn't look like VFS is available", e);
    }
View Full Code Here

      pluginRegistry.addPlugin(p1);
      p1.activateOptions();
      pluginRegistry.addPlugin(p2);
      p2.activateOptions();
      pluginRegistry.addPlugin(p3);
      p3.activateOptions();
     
  }
}
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.