|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.shibboleth.common.util.EventingMapBasedStorageService<KeyType,ValueType>
KeyType
- object type of the keysValueType
- object type of the valuespublic class EventingMapBasedStorageService<KeyType,ValueType>
A thread-safe implementation of StorageService
that publishes event when items are added or removed from the
service.
An EventingMapBasedStorageService.AddEntryEvent
is published after an item has been added to the storage service. A EventingMapBasedStorageService.RemoveEntryEvent
is published after an item has been removed from the storage service. These events are published in the root
application context, that is the highest ancestor, of the application context presented to this class.
Nested Class Summary | |
---|---|
class |
EventingMapBasedStorageService.AddEntryEvent
An event indicating an item has been added to an storage service. |
class |
EventingMapBasedStorageService.PartitionEntryIterator
An iterator over the entries of a partition of the storage service. |
class |
EventingMapBasedStorageService.PartitionIterator
An iterator over the partitions of the storage service. |
class |
EventingMapBasedStorageService.RemoveEntryEvent
An event indicating an item has been removed from an storage service. |
Constructor Summary | |
---|---|
EventingMapBasedStorageService()
Constructor. |
Method Summary | |
---|---|
boolean |
contains(String partition,
Object key)
|
ValueType |
get(String partition,
Object key)
|
Iterator<KeyType> |
getKeys(String partition)
|
Iterator<String> |
getPartitions()
|
ValueType |
put(String partition,
KeyType key,
ValueType value)
|
ValueType |
remove(String partition,
KeyType key)
|
void |
setApplicationContext(org.springframework.context.ApplicationContext ctx)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventingMapBasedStorageService()
Method Detail |
---|
public boolean contains(String partition, Object key)
contains
in interface org.opensaml.util.storage.StorageService<KeyType,ValueType>
public ValueType get(String partition, Object key)
get
in interface org.opensaml.util.storage.StorageService<KeyType,ValueType>
public Iterator<KeyType> getKeys(String partition)
getKeys
in interface org.opensaml.util.storage.StorageService<KeyType,ValueType>
public Iterator<String> getPartitions()
getPartitions
in interface org.opensaml.util.storage.StorageService<KeyType,ValueType>
public ValueType put(String partition, KeyType key, ValueType value)
put
in interface org.opensaml.util.storage.StorageService<KeyType,ValueType>
public ValueType remove(String partition, KeyType key)
remove
in interface org.opensaml.util.storage.StorageService<KeyType,ValueType>
public void setApplicationContext(org.springframework.context.ApplicationContext ctx)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |