public interface ServerPluginValidator
ServerPluginValidatorUtil. The names of the
implementor classes (if they are to be used by that utility) must match the
name of the plugin type followed by "Validator" (e.g. "GenericPluginValidator"
or "AlertPluginValidator"). They must be in a subpackage under the
package where this interface is, where that subpackage is named
for that plugin type (minus the word "Plugin" and all lowercase) such as
".generic" or ".alert".
Note that when this validator is invoked, the plugin descriptor has already had
its basics validated (that is, it is assured the descriptor XML is well-formed
and validates against the XML schema, the plugin has been given a version, its
plugin component class is valid and can be instantiated (if one was specified)
among other things). Implementors of this validator class need only validate
specific things that are unique to the specific plugin type for which this
validator is used.| Modifier and Type | Method and Description |
|---|---|
boolean |
validate(ServerPluginEnvironment env)
Given a server plugin environment, this method should validate the descriptor
to ensure it is logically correct.
|
boolean validate(ServerPluginEnvironment env)
env - the environment of the plugin to testtrue if the plugin descriptor is valid, false otherwiseCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.