}
protected PluginDescriptor createPluginDescriptor(Manifest manifest) {
- PluginDescriptor pluginDescriptor = new PluginDescriptor();
+ PluginDescriptor pluginDescriptor = createPluginDescriptorInstance();
// TODO validate !!!
Attributes attributes = manifest.getMainAttributes();
return pluginDescriptor;
}
+ protected PluginDescriptor createPluginDescriptorInstance() {
+ return new PluginDescriptor();
+ }
+
protected void validatePluginDescriptor(PluginDescriptor pluginDescriptor) throws PluginException {
if (StringUtils.isEmpty(pluginDescriptor.getPluginId())) {
throw new PluginException("Plugin-Id cannot be empty");
}
protected PluginDescriptor createPluginDescriptor(Properties properties) {
- PluginDescriptor pluginDescriptor = new PluginDescriptor();
+ PluginDescriptor pluginDescriptor = createPluginDescriptorInstance();
// TODO validate !!!
String id = properties.getProperty("plugin.id");
return pluginDescriptor;
}
+ protected PluginDescriptor createPluginDescriptorInstance() {
+ return new PluginDescriptor();
+ }
+
protected void validatePluginDescriptor(PluginDescriptor pluginDescriptor) throws PluginException {
if (StringUtils.isEmpty(pluginDescriptor.getPluginId())) {
throw new PluginException("plugin.id cannot be empty");