|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type of context the parser creates.
public interface DefinitionConfigParser<T extends PropertiesDefinitionContext>
Parses the definition.xml
file for properties.
Method Summary | |
---|---|
T |
parse(Class<?> type) Convenience method using a class' class loader to locate the configuration file to parse the configuration file at PropertiesContext.DEFINITION_FILE . |
T |
parse(de.smartics.util.lang.classpath.ClassPathContext context) Parses the configuration file at PropertiesContext.DEFINITION_FILE . |
T |
parse(String systemId, InputStream input) Parses the definition.xml from the given stream. |
Method Detail |
---|
T parse(Class<?> type) throws ConfigException
PropertiesContext.DEFINITION_FILE
.
type
- the type whose class loader to use to locate the configuration file.
null
.
ConfigException
- on any problem loading the file.
T parse(de.smartics.util.lang.classpath.ClassPathContext context) throws ConfigException
PropertiesContext.DEFINITION_FILE
.
context
- the class loader with its context to use to locate the configuration file.
null
.
ConfigException
- on any problem loading the file.
T parse(String systemId, InputStream input) throws ConfigException
definition.xml
from the given stream.
systemId
- the identifier of the resource on the stream.
input
- the
definition.xml
on the stream.
ConfigException
- on any problem reading from the stream.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |