org.glite.authz.common.config
Interface ConfigurationParser<ConfigurationType extends AbstractConfiguration>

Type Parameters:
ConfigurationType - the type of configuration produced by this parser
All Known Implementing Classes:
AbstractIniConfigurationParser, AbstractIniServiceConfigurationParser

public interface ConfigurationParser<ConfigurationType extends AbstractConfiguration>

A parser for configurations.


Method Summary
 ConfigurationType parse(java.io.Reader config)
          Reads a given configuration and creates the appropriate AbstractConfiguration.
 ConfigurationType parse(java.lang.String config)
          Reads a given configuration and creates the appropriate AbstractConfiguration.
 

Method Detail

parse

ConfigurationType parse(java.lang.String config)
                                                      throws ConfigurationException
Reads a given configuration and creates the appropriate AbstractConfiguration.

Parameters:
config - the configuration to be read
Returns:
the AbstractConfiguration containing the information from the provided config
Throws:
ConfigurationException - thrown if there is a problem creating the configuration from the given information

parse

ConfigurationType parse(java.io.Reader config)
                                                      throws ConfigurationException
Reads a given configuration and creates the appropriate AbstractConfiguration.

Parameters:
config - the configuration to be read
Returns:
the AbstractConfiguration containing the information from the provided config
Throws:
ConfigurationException - thrown if there is a problem creating the configuration from the given information


Copyright © 2008-2012 EMI - European Middleware Initiative. All Rights Reserved.