Moved project to SpringSource.
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
|
||||
<chapter id="metadata">
|
||||
<title>Metadata</title>
|
||||
|
||||
<para>For plugin architectures it is essential to capture metadata
|
||||
information about plugin instances. A very core set of metadata (name,
|
||||
version) also serves as identifier of a plugin and thus can be used. The
|
||||
Hera metadata module provides support to capture metadata.</para>
|
||||
Spring Plugin metadata module provides support to capture metadata.</para>
|
||||
|
||||
<section id="metadata.core-concepts">
|
||||
<title>Core concepts</title>
|
||||
@@ -34,11 +36,11 @@ public interface MetadataProvider {
|
||||
<para>The <interfacename>PluginMetadata</interfacename> interface captures
|
||||
the required properties to define an identifyable plugin. This means, that
|
||||
implementations should ensure uniqueness through these two properties.
|
||||
With <classname>SimplePluginMetadata</classname> Hera provides a Java bean
|
||||
style class to capture metadata. Of course applications can and should
|
||||
provide extended metadata information according to their needs. The very
|
||||
narrow interface is only targeted at integrating the metadata concept with
|
||||
the <classname>PluginRegistry</classname> (see <xref
|
||||
With <classname>SimplePluginMetadata</classname> Spring Plugin provides a
|
||||
Java bean style class to capture metadata. Of course applications can and
|
||||
should provide extended metadata information according to their needs. The
|
||||
very narrow interface is only targeted at integrating the metadata concept
|
||||
with the <classname>PluginRegistry</classname> (see <xref
|
||||
linkend="core.plugin-registry" />) without bothering developers with too
|
||||
much information required.</para>
|
||||
|
||||
@@ -52,4 +54,4 @@ public interface MetadataProvider {
|
||||
could store the metadata in user specific configuration files and use this
|
||||
to select a distinct plugin specific to a given user.</para>
|
||||
</section>
|
||||
</chapter>
|
||||
</chapter>
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
Class-Path:
|
||||
|
||||
@@ -13,10 +13,10 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.synyx.hera.metadata;
|
||||
package org.springframework.plugin.metadata;
|
||||
|
||||
import org.synyx.hera.core.Plugin;
|
||||
import org.synyx.hera.core.PluginRegistry;
|
||||
import org.springframework.plugin.core.Plugin;
|
||||
import org.springframework.plugin.core.PluginRegistry;
|
||||
|
||||
/**
|
||||
* Abstract base class for plugins based on {@link PluginMetadata}. Plugins based on this class can be selected from the
|
||||
@@ -41,7 +41,7 @@ public abstract class AbstractMetadataBasedPlugin implements Plugin<PluginMetada
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.synyx.hera.core.Plugin#supports(java.lang.Object)
|
||||
* @see org.springframework.plugin.core.Plugin#supports(java.lang.Object)
|
||||
*/
|
||||
public boolean supports(PluginMetadata delimiter) {
|
||||
return getMetadata().equals(delimiter);
|
||||
@@ -49,7 +49,7 @@ public abstract class AbstractMetadataBasedPlugin implements Plugin<PluginMetada
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.synyx.hera.metadata.MetadataProvider#getMetadata()
|
||||
* @see org.springframework.plugin.metadata.MetadataProvider#getMetadata()
|
||||
*/
|
||||
public PluginMetadata getMetadata() {
|
||||
return metadata;
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.synyx.hera.metadata;
|
||||
package org.springframework.plugin.metadata;
|
||||
|
||||
/**
|
||||
* Interface for plugins providing metadata information. Usually the plugins will implement this interface themselves.
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.synyx.hera.metadata;
|
||||
package org.springframework.plugin.metadata;
|
||||
|
||||
/**
|
||||
* Basic interface to define a set of metadata information for plugins.
|
||||
@@ -14,7 +14,7 @@
|
||||
* the License.
|
||||
*/
|
||||
|
||||
package org.synyx.hera.metadata;
|
||||
package org.springframework.plugin.metadata;
|
||||
|
||||
import static org.springframework.util.ObjectUtils.*;
|
||||
|
||||
@@ -47,7 +47,7 @@ public class SimplePluginMetadata implements PluginMetadata {
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.synyx.hera.metadata.PluginMetadata#getName()
|
||||
* @see org.springframework.plugin.metadata.PluginMetadata#getName()
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
@@ -55,7 +55,7 @@ public class SimplePluginMetadata implements PluginMetadata {
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.synyx.hera.metadata.PluginMetadata#getVersion()
|
||||
* @see org.springframework.plugin.metadata.PluginMetadata#getVersion()
|
||||
*/
|
||||
public String getVersion() {
|
||||
return version;
|
||||
Reference in New Issue
Block a user