Class ExtensionPointKey
- java.lang.Object
-
- net.sf.basedb.util.extensions.manager.ExtensionPointKey
-
- All Implemented Interfaces:
ObjectKey<ExtensionPoint<?>>
public class ExtensionPointKey extends Object implements ObjectKey<ExtensionPoint<?>>
Key implementation used to identify extension points. Since each extension point is identified by it's id, we use that as the key for equality.- Since:
- 3.0
- Author:
- Nicklas
- See Also:
ExtensionPoint
- Last modified
- $Date: 2015-04-20 11:08:18 +0200 (må, 20 apr 2015) $
-
-
Constructor Summary
Constructors Constructor Description ExtensionPointKey(String id)
Create a new key for an extension point with the given id.ExtensionPointKey(ExtensionPoint<?> ep)
Create a new key for an extension point.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
String
toDescription()
Get a string description of the key that is suitable for use in (error) messages to users.String
toString()
-
-
-
Field Detail
-
id
private final String id
-
-
Constructor Detail
-
ExtensionPointKey
public ExtensionPointKey(String id)
Create a new key for an extension point with the given id.- Parameters:
id
- The id (required)
-
ExtensionPointKey
public ExtensionPointKey(ExtensionPoint<?> ep)
Create a new key for an extension point.- Parameters:
ep
- The extension point (required)
-
-
Method Detail
-
toDescription
public String toDescription()
Description copied from interface:ObjectKey
Get a string description of the key that is suitable for use in (error) messages to users.- Specified by:
toDescription
in interfaceObjectKey<ExtensionPoint<?>>
-
-