protected void validatePluginDescriptor ( PluginDescriptor descriptor ) throws PluginException { if ( StringUtils . isNullOrEmpty ( descriptor . getPluginId ( ) ) ) { throw new PluginException ( "Field 'id' cannot be empty" ) ; } if ( descriptor . getVersion ( ) == null ) { throw new PluginException ( "Field 'version' cannot be empty" ) ; } }
Override this to change the validation criteria .