public interface HierarchicalRepository<T>
Modifier and Type | Method and Description |
---|---|
void |
addMatch(String match,
T value)
Add a new match to the repository
|
void |
addMatch(String match,
T value,
boolean immutableMatch) |
void |
clear()
clear the repository
|
void |
clearCache()
Clears the cache.
|
void |
clearListeners()
Removes all listeners.
|
void |
disableListeners() |
void |
enableListeners() |
int |
getCacheSize() |
T |
getMatch(String match)
return the value held against the nearest match
|
void |
registerListener(HierarchicalRepositoryChangeListener listener)
register a listener to listen for changes in the repository
|
void |
removeMatch(String match)
remove a match from the repository
|
void |
setDefault(T defaultValue)
set the default value to fallback to if none found
|
void |
unRegisterListener(HierarchicalRepositoryChangeListener listener)
unregister a listener
|
List<T> |
values()
Return a list of Values being added
|
void disableListeners()
void enableListeners()
void addMatch(String match, T value)
match
- The regex to use to match againstvalue
- the value to hold against the matchT getMatch(String match)
match
- the match to look forvoid setDefault(T defaultValue)
defaultValue
- the valuevoid removeMatch(String match)
match
- the match to removevoid registerListener(HierarchicalRepositoryChangeListener listener)
listener
- void unRegisterListener(HierarchicalRepositoryChangeListener listener)
listener
- void clear()
void clearListeners()
void clearCache()
int getCacheSize()
Copyright © 2016 JBoss by Red Hat. All rights reserved.