|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.spi.config.domain.key.PropertyResourceMatchers
public final class PropertyResourceMatchers
A collection of matchers to determine a configuration key for a properties resource.
Constructor Summary | |
---|---|
PropertyResourceMatchers() Convenience constructor for a matcher that matches nothing. |
|
PropertyResourceMatchers(ConfigurationKey<?> anyKey, List<PropertiesResourceMatcher> matchers) Default constructor. |
Method Summary | |
---|---|
ConfigurationKey<?> |
getKey(String resourceId) Returns the key for the given resource identifier. |
String |
toString() Returns the string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropertyResourceMatchers()
public PropertyResourceMatchers(ConfigurationKey<?> anyKey, List<PropertiesResourceMatcher> matchers) throws NullPointerException
anyKey
- the default key to match if none of the matchers can be applied. May be
null
.
matchers
- the matchers for mapping properties resources (file path names) to a configuration key.
NullPointerException
- if
matchers
is
null
.
Method Detail |
---|
public ConfigurationKey<?> getKey(String resourceId)
resourceId
- the identifier of a resource. Usually the path to a properties file within an archive.
anyKey
if none is registered for the given
resourceId
. The default key may be
null
.
public String toString()
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |