Class FactoryParametersKey
- java.lang.Object
-
- net.sf.basedb.util.extensions.manager.FactoryParametersKey
-
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 (to, 14 apr 2011) $
-
-
Constructor Summary
Constructors Constructor Description FactoryParametersKey(Object factory)
Create a new key for the given factory.
-
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
-
factory
private final Object factory
-
-
Constructor Detail
-
FactoryParametersKey
public FactoryParametersKey(Object factory)
Create a new key for the given factory.- Parameters:
factory
- The factory (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<String>
-
-