xsmeral.semnet.manager
Class Configuration

java.lang.Object
  extended by xsmeral.semnet.manager.Configuration

@XStreamConverter(value=ConfigurationConverter.class)
public class Configuration
extends Object

Container for an object processor class and its configuration parameters.


Constructor Summary
Configuration(Class processor, Map<String,String> params)
          Initializes fields and computes hash code in advance.
 
Method Summary
 boolean equals(Object obj)
           
 Class getClazz()
          Returns class of the object processor.
 Map<String,String> getParams()
          Returns parameter map, that is used to initialize the processor.
 int hashCode()
          Returns hashCode that is computed the usual way during construction.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configuration

public Configuration(Class processor,
                     Map<String,String> params)
Initializes fields and computes hash code in advance.

Method Detail

getParams

public Map<String,String> getParams()
Returns parameter map, that is used to initialize the processor.


getClazz

public Class getClazz()
Returns class of the object processor.


equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public final int hashCode()
Returns hashCode that is computed the usual way during construction. HashCode is cached, because fields can only be set once.

Overrides:
hashCode in class Object