3.0.2: 2012-01-25

net.sf.basedb.util.extensions.manager
Class FactoryParametersKey

java.lang.Object
  extended by 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) $

Field Summary
private  Object factory
           
 
Constructor Summary
FactoryParametersKey(Object factory)
          Create a new key for the given factory.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 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

3.0.2: 2012-01-25