org.rhq.core.pc.plugin
Class PluginValidator

java.lang.Object
  extended by org.rhq.core.pc.plugin.PluginValidator

public class PluginValidator
extends Object

A utility to test a set of plugins are valid.

Author:
John Mazzitelli

Constructor Summary
PluginValidator()
           
 
Method Summary
static void main(String[] args)
          If no args are passed in, the current thread's classloader will be used to find the plugins to validate.
static boolean validatePlugins(PluginFinder finder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginValidator

public PluginValidator()
Method Detail

main

public static void main(String[] args)
If no args are passed in, the current thread's classloader will be used to find the plugins to validate. If one or more argument strings are provided, they will be assumed to be paths to the plugin jars to validate (in which case the thread's classloader will be ignored and not searched for plugins). The last line this will output will be "!OK!" and exit with an exit code of 0 if everything is OK. The last line this will output will be "!FAILURE!" and exit with an exit code of 1 if one or more plugins failed validation.

Parameters:
args - 0 or more plugin jar file paths

validatePlugins

public static boolean validatePlugins(PluginFinder finder)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.