org.springframework.plugin.metadata
Class SimplePluginMetadata

java.lang.Object
  extended by org.springframework.plugin.metadata.SimplePluginMetadata
All Implemented Interfaces:
PluginMetadata

public class SimplePluginMetadata
extends Object
implements PluginMetadata

Value object style implementation of PluginMetadata.

Author:
Oliver Gierke - gierke@synyx.de

Constructor Summary
SimplePluginMetadata(String name, String version)
          Creates a new instance of SimplePluginMetadata.
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
          Returns a unique plugin name.
 String getVersion()
          Returns the plugin version.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimplePluginMetadata

public SimplePluginMetadata(String name,
                            String version)
Creates a new instance of SimplePluginMetadata.

Parameters:
name - must not be null.
version - must not be null.
Method Detail

getName

public String getName()
Description copied from interface: PluginMetadata
Returns a unique plugin name. Plugins return a metadata implementation have to ensure uniqueness of this name.

Specified by:
getName in interface PluginMetadata
Returns:
the name of the plugin

getVersion

public String getVersion()
Description copied from interface: PluginMetadata
Returns the plugin version. This allows rudimentary versioning possibilities.

Specified by:
getVersion in interface PluginMetadata
Returns:
the version of the plugin

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2008-2014–2014 Pivotal, Inc.. All rights reserved.