
public abstract class Registry<K,V> extends Container<Map.Entry<K,V>> implements IRegistry<K,V>
| Modifier and Type | Class and Description |
|---|---|
protected class |
Registry.Transaction |
IContainer.Modifiable<E>, IContainer.Persistable<E>, IContainer.Persistence<E>ILifecycle.DeferrableActivation| Modifier | Constructor and Description |
|---|---|
protected |
Registry() |
protected |
Registry(boolean autoCommit) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
autoCommit() |
void |
clear()
Requires
commit() to be called later if not isAutoCommit(). |
void |
commit() |
void |
commit(boolean notifications) |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
protected V |
deregister(Object key) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
Map.Entry<K,V>[] |
getElements() |
protected abstract Map<K,V> |
getMap() |
protected Registry.Transaction |
getTransaction() |
boolean |
isAutoCommit() |
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
put(K key,
V value)
Requires
commit() to be called later if not isAutoCommit(). |
void |
putAll(Map<? extends K,? extends V> t)
Requires
commit() to be called later if not isAutoCommit(). |
protected V |
register(K key,
V value) |
V |
remove(Object key)
Requires
commit() to be called later if not isAutoCommit(). |
void |
setAutoCommit(boolean autoCommit) |
int |
size() |
String |
toString() |
Collection<V> |
values() |
fireContainerEvent, fireContainerEvent, fireContainerEvent, fireElementAddedEvent, fireElementRemovedEvent, fireElementsAddedEvent, fireElementsRemovedEvent, fireEvent, newContainerEvent, newContainerEventactivate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivationaddListener, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, getListeners, hasListeners, removeListenerpublic boolean isEmpty()
public boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>public V put(K key, V value)
commit() to be called later if not isAutoCommit().public void putAll(Map<? extends K,? extends V> t)
commit() to be called later if not isAutoCommit().public V remove(Object key)
commit() to be called later if not isAutoCommit().public void clear()
commit() to be called later if not isAutoCommit().public Map.Entry<K,V>[] getElements()
getElements in interface IContainer<Map.Entry<K,V>>public boolean isAutoCommit()
isAutoCommit in interface IRegistry<K,V>public void setAutoCommit(boolean autoCommit)
setAutoCommit in interface IRegistry<K,V>protected Registry.Transaction getTransaction()
protected void autoCommit()
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.