|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.messaging.core.settings.impl.HierarchicalObjectRepository<T>
public class HierarchicalObjectRepository<T>
allows objects to be mapped against a regex pattern and held in order in a list
| Constructor Summary | |
|---|---|
HierarchicalObjectRepository()
|
|
| Method Summary | |
|---|---|
void |
addMatch(java.lang.String match,
T value)
Add a new match to the repository |
T |
getMatch(java.lang.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(java.lang.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HierarchicalObjectRepository()
| Method Detail |
|---|
public void addMatch(java.lang.String match,
T value)
addMatch in interface HierarchicalRepository<T>match - The regex to use to match againstvalue - the value to hold agains the matchpublic T getMatch(java.lang.String match)
getMatch in interface HierarchicalRepository<T>match - the match to look for
public void removeMatch(java.lang.String match)
removeMatch in interface HierarchicalRepository<T>match - the match to removepublic void registerListener(HierarchicalRepositoryChangeListener listener)
HierarchicalRepository
registerListener in interface HierarchicalRepository<T>public void unRegisterListener(HierarchicalRepositoryChangeListener listener)
HierarchicalRepository
unRegisterListener in interface HierarchicalRepository<T>public void setDefault(T defaultValue)
setDefault in interface HierarchicalRepository<T>defaultValue - the value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||