org.apache.hivemind.definition
Interface ConfigurationParser


public interface ConfigurationParser

Parses configuration data that is provided in a textual format. A new instance is created for each parsing operation.

Author:
Huegen

Method Summary
 java.lang.Object parse(ContributionContext context, java.io.InputStream data)
          Parses a configuration and returns the converted data.
 java.lang.Object parse(ContributionContext context, java.lang.Object data)
          Parses a configuration and returns the converted data.
 

Method Detail

parse

java.lang.Object parse(ContributionContext context,
                       java.io.InputStream data)
Parses a configuration and returns the converted data.

Parameters:
context - context
data - the data to parse as stream.
Returns:
the converted data.

parse

java.lang.Object parse(ContributionContext context,
                       java.lang.Object data)
Parses a configuration and returns the converted data.

Parameters:
context - context
data - the data to parse. What kind of object is expected here is parser specific.
Returns:
the converted data.


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.