org.springframework.plugin.metadata
Class AbstractMetadataBasedPlugin
java.lang.Object
org.springframework.plugin.metadata.AbstractMetadataBasedPlugin
- All Implemented Interfaces:
- Plugin<PluginMetadata>, MetadataProvider
public abstract class AbstractMetadataBasedPlugin
- extends Object
- implements Plugin<PluginMetadata>, MetadataProvider
Abstract base class for plugins based on PluginMetadata. Plugins based on this class can be selected from the
PluginRegistry via an instance of PluginMetadata. Therefore you can regard this as a role model
implementation of a base class for certain delimiter implmentations.
- Author:
- Oliver Gierke
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractMetadataBasedPlugin
public AbstractMetadataBasedPlugin(String name,
String version)
- Creates a new instance of
AbstractMetadataBasedPlugin.
- Parameters:
name - must not be null.version - must not be null.
supports
public boolean supports(PluginMetadata delimiter)
- Specified by:
supports in interface Plugin<PluginMetadata>
getMetadata
public PluginMetadata getMetadata()
- Description copied from interface:
MetadataProvider
- Returns the plugins metadata.
- Specified by:
getMetadata in interface MetadataProvider
- Returns:
- the plugins metadata
Copyright © 2008-2014–2014 Pivotal, Inc.. All rights reserved.