Package org.eclipse.net4j.util.registry
Class Registry<K,V>
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.net4j.util.lifecycle.ShareableLifecycle
org.eclipse.net4j.util.container.Container<Map.Entry<K,V>>
org.eclipse.net4j.util.registry.Registry<K,V>
- All Implemented Interfaces:
Map<K,
,V> IContainer<Map.Entry<K,
,V>> INotifier
,INotifier.INotifier2
,IDeactivateable
,ILifecycle
,ILifecycle.DeferrableActivation
,IRegistry<K,
V>
- Direct Known Subclasses:
DelegatingRegistry
,HashMapRegistry
- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.container.IContainer
IContainer.Modifiable<E>, IContainer.Persistable<E>, IContainer.Persistence<E>
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
ILifecycle.DeferrableActivation
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
INotifier.INotifier2
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
clear()
Requirescommit()
to be called later if notisAutoCommit()
.void
commit()
void
commit
(boolean notifications) boolean
containsKey
(Object key) boolean
containsValue
(Object value) protected V
deregister
(Object key) entrySet()
getMap()
protected Registry<K,
V>.Transaction boolean
boolean
isEmpty()
keySet()
Requirescommit()
to be called later if notisAutoCommit()
.void
Requirescommit()
to be called later if notisAutoCommit()
.protected V
Requirescommit()
to be called later if notisAutoCommit()
.void
setAutoCommit
(boolean autoCommit) int
size()
toString()
values()
Methods inherited from class org.eclipse.net4j.util.container.Container
fireContainerEvent, fireContainerEvent, fireContainerEvent, fireElementAddedEvent, fireElementRemovedEvent, fireElementsAddedEvent, fireElementsRemovedEvent, fireEvent, newContainerEvent, newContainerEvent
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivation
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
Registry
protected Registry(boolean autoCommit) -
Registry
protected Registry()
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
size
public int size() -
entrySet
-
keySet
-
values
-
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V>
-
get
-
put
Requirescommit()
to be called later if notisAutoCommit()
. -
putAll
Requirescommit()
to be called later if notisAutoCommit()
. -
remove
Requirescommit()
to be called later if notisAutoCommit()
. -
clear
public void clear()Requirescommit()
to be called later if notisAutoCommit()
. -
getElements
- Specified by:
getElements
in interfaceIContainer<K>
-
isAutoCommit
public boolean isAutoCommit()- Specified by:
isAutoCommit
in interfaceIRegistry<K,
V>
-
setAutoCommit
public void setAutoCommit(boolean autoCommit) - Specified by:
setAutoCommit
in interfaceIRegistry<K,
V>
-
commit
public void commit(boolean notifications) -
commit
public void commit() -
toString
-
register
-
deregister
-
getTransaction
-
autoCommit
protected void autoCommit() -
getMap
-