|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.spi.core.context.DeclarationConfigParser
public final class DeclarationConfigParser
Parses the configuration file for properties.
Constructor Summary | |
---|---|
DeclarationConfigParser() Default constructor. |
Method Summary | |
---|---|
PropertiesContext |
parse(Class<?> type) Convenience method using a class' class loader to locate the configuration file to parse the configuration file at PropertiesContext.DECLARATION_FILE . |
PropertiesContext |
parse(de.smartics.util.lang.ClassPathContext context) Parses the configuration file at PropertiesContext.DECLARATION_FILE . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeclarationConfigParser()
Method Detail |
---|
public PropertiesContext parse(Class<?> type) throws ConfigException
PropertiesContext.DECLARATION_FILE
.
type
- the type whose class loader to use to locate the configuration file.
null
.
ConfigException
- on any problem loading the file.
public PropertiesContext parse(de.smartics.util.lang.ClassPathContext context) throws ConfigException
PropertiesContext.DECLARATION_FILE
.
context
- the context to use to locate the configuration file.
null
.
ConfigException
- on any problem loading the file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |