KeyType
- object type of the keysValueType
- object type of the valuespublic class EventingMapBasedStorageService<KeyType,ValueType> extends Object implements org.opensaml.util.storage.StorageService<KeyType,ValueType>, org.springframework.context.ApplicationContextAware
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.Modifier and Type | Class and Description |
---|---|
static class |
EventingMapBasedStorageService.AddEntryEvent<KeyType,ValueType>
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.
|
static class |
EventingMapBasedStorageService.RemoveEntryEvent<KeyType,ValueType>
An event indicating an item has been removed from an storage service.
|
Constructor and Description |
---|
EventingMapBasedStorageService()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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) |
public EventingMapBasedStorageService()
public void setApplicationContext(org.springframework.context.ApplicationContext ctx)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
Copyright © 1999–2014. All rights reserved.