Class ExtensionKey
java.lang.Object
net.sf.basedb.util.extensions.manager.ExtensionKey
Key implementation used to identify extensions.
Since each extension is identified by it's id,
we use that as the key for equality.
- Since:
- 3.0
- Author:
- Nicklas
- See Also:
- Last modified
- $Date: 2015-04-20 11:08:18 +0200 (må, 20 apr 2015) $
-
Field Summary
-
Constructor Summary
ConstructorDescriptionExtensionKey
(String id) Create a new key for an extension with the given id.ExtensionKey
(Extension<?> ext) Create a new key for an extension. -
Method Summary
-
Field Details
-
id
-
-
Constructor Details
-
ExtensionKey
Create a new key for an extension with the given id.- Parameters:
id
- The id (required)
-
ExtensionKey
Create a new key for an extension.- Parameters:
ext
- The extension point (required)
-
-
Method Details
-
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<Extension<?>>
-
hashCode
public int hashCode() -
equals
-
toString
-