DATAKV-91 - Add support for sending application events.

We now allow definition of event types to be published via the application context.

Original pull request: #5.
This commit is contained in:
Christoph Strobl
2015-04-13 12:12:56 +02:00
committed by Thomas Darimont
parent a8a37d4a32
commit 07b3a1547c
5 changed files with 521 additions and 18 deletions

View File

@@ -142,6 +142,17 @@ public class MapKeyValueAdapter extends AbstractKeyValueAdapter {
getKeySpaceMap(keyspace).clear();
}
/*
* (non-Javadoc)
* @see org.springframework.data.keyvalue.core.KeyValueAdapter#hasKeyspace(java.io.Serializable)
*/
@Override
public boolean hasKeyspace(Serializable keyspace) {
Assert.notNull(keyspace, "Collection must not be null for lookup.");
return store.containsKey(keyspace);
}
/*
* (non-Javadoc)
* @see org.springframework.data.keyvalue.core.KeyValueAdapter#clear()