net.sf.basedb.util.extensions.manager
Class FactoryParametersKey
java.lang.Object
net.sf.basedb.util.extensions.manager.FactoryParametersKey
- All Implemented Interfaces:
- ObjectKey<String>
public class FactoryParametersKey
- extends Object
- implements ObjectKey<String>
Key implementation used for configuration parameters for factories.
This is used for both action, renderer and error handler factories
registered for extensions and extension points.
The parameters are stored as metadata on the extensions file that
loaded the extensions and can be accessed via
ExtensionsFile.getMetadata(ObjectKey)
. The returned value is
an XML representation of the parameters as they appear in the
definitions file.
The key is the factory instance itself.
- Since:
- 3.0
- Author:
- Nicklas
- Last modified
- $Date: 2011-04-14 09:45:23 +0200 (Thu, 14 Apr 2011) $
factory
private final Object factory
FactoryParametersKey
public FactoryParametersKey(Object factory)
- Create a new key for the given factory.
- Parameters:
factory
- The factory (required)
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 interface ObjectKey<String>
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object