net.sf.panoptes.model.component.registry
Class ConfiguratorRegistry

java.lang.Object
  |
  +--net.sf.panoptes.model.component.registry.ConfiguratorRegistry

public class ConfiguratorRegistry
extends java.lang.Object

Version:
0.1
Author:
Dag Liodden

Constructor Summary
ConfiguratorRegistry()
           
 
Method Summary
 ConfiguratorEntry addConfigurator(java.lang.String name, java.lang.String className, java.lang.String patterns, java.util.HashMap attributes)
          Adds a Configurator to the registry.
 java.util.Set findConfigurators(ComponentName componentName)
          Fetches configurators that match the Componentname.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfiguratorRegistry

public ConfiguratorRegistry()
Method Detail

addConfigurator

public ConfiguratorEntry addConfigurator(java.lang.String name,
                                         java.lang.String className,
                                         java.lang.String patterns,
                                         java.util.HashMap attributes)
                                  throws ConfiguratorRegistryException,
                                         MalformedComponentNameException
Adds a Configurator to the registry.

Parameters:
name - the nickname of the configurator (to be used in configuration files)
className - the FQCN of the class
patterns - comma-delimited string of patterns that can be parsed as ComponentName
Throws:
ConfiguratorRegistryException - if configurator already is added or has an invalid className
MalformedComponentNameException
See Also:
ComponentConfigurator

findConfigurators

public java.util.Set findConfigurators(ComponentName componentName)
Fetches configurators that match the Componentname.

Parameters:
componentName - the name of the component. If it's null, only configurators with patterns that match any component are returned
Returns:


Copyright © 2003 . All Rights Reserved.