|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BindingKeyedCollections
A factory for creating collections whose key/value pairs are stored as
service bindings. This factory may be obtained from the ComponentRegistry.
The keyPrefix supplied to the newMap and
set methods specifies the service binding name prefix to
use for each key in the map. That is, a value in the map (or set) is
stored in the data service using its associated key (a String) as a
suffix to the keyPrefix specified during construction.
| Method Summary | ||
|---|---|---|
|
newMap(String keyPrefix)
Constructs an instance of a BindingKeyedMap
with the specified keyPrefix. |
|
|
newSet(String keyPrefix)
Constructs an instance of a BindingKeyedSet
with the specified keyPrefix. |
|
| Method Detail |
|---|
<V> BindingKeyedMap<V> newMap(String keyPrefix)
BindingKeyedMap
with the specified keyPrefix.
V - the type of the map's valueskeyPrefix - a key prefix
BindingKeyedMap with the specified
keyPrefix
IllegalArgumentException - if keyPrefix is empty<V> BindingKeyedSet<V> newSet(String keyPrefix)
BindingKeyedSet
with the specified keyPrefix.
V - the type of the set's valueskeyPrefix - a key prefix
BindingKeyedSet with the specified
keyPrefix
IllegalArgumentException - if keyPrefix is empty
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||