git://wamblee.org
/
xmlrouter
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Now using RouterConfig internally inside the XML Router.
[xmlrouter]
/
config
/
src
/
main
/
java
/
org
/
wamblee
/
xmlrouter
/
config
/
Config.java
diff --git
a/config/src/main/java/org/wamblee/xmlrouter/config/Config.java
b/config/src/main/java/org/wamblee/xmlrouter/config/Config.java
index b90b34c4bfb58a0739d760d0b545a139bf19df0c..263b0b66bfe7c0fbad9087dc6c8b2de21462cbdd 100644
(file)
--- a/
config/src/main/java/org/wamblee/xmlrouter/config/Config.java
+++ b/
config/src/main/java/org/wamblee/xmlrouter/config/Config.java
@@
-15,13
+15,13
@@
*/
package org.wamblee.xmlrouter.config;
*/
package org.wamblee.xmlrouter.config;
-import java.util.
Collection
;
+import java.util.
Map
;
import org.wamblee.xmlrouter.common.Id;
/**
import org.wamblee.xmlrouter.common.Id;
/**
- *
Basic configuration interface for managing a set of configuration items of a
- *
given type with
unique ids.
+ *
Interface for managing a set of configuration items of a given type with
+ * unique ids.
*
* @author Erik Brakkee
*
*
* @author Erik Brakkee
*
@@
-51,15
+51,5
@@
public interface Config<T> {
/**
* @return All available ids.
*/
/**
* @return All available ids.
*/
- Collection<Id<T>> ids();
-
- /**
- * Gets the item for the given id.
- *
- * @param aId
- * Item id.
- * @return Item, or null if not found.
- */
- T get(Id<T> aId);
-
+ Map<Id<T>, T> map();
}
\ No newline at end of file
}
\ No newline at end of file