|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.spi.config.definition.DefinitionConfigParser
public final class DefinitionConfigParser
Parses the definition.xml
file for properties.
Constructor Summary | |
---|---|
DefinitionConfigParser() Default constructor. |
Method Summary | |
---|---|
PropertiesDefinitionContext |
parse(Class<?> type) Convenience method using a class' class loader to locate the configuration file to parse the configuration file at PropertiesContext.DEFINITION_FILE . |
PropertiesDefinitionContext |
parse(de.smartics.util.lang.ClassPathContext context) Parses the configuration file at PropertiesContext.DEFINITION_FILE . |
PropertiesDefinitionContext |
parse(String systemId, InputStream input) Parses the definition.xml from the given stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefinitionConfigParser()
Method Detail |
---|
public PropertiesDefinitionContext 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.
public PropertiesDefinitionContext parse(de.smartics.util.lang.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.
public PropertiesDefinitionContext 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 |