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>
- Type Parameters:
K- the key typeV- the value type
- 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, ScopedRegistry
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Notifier
Notifier.CancelationNested classes/interfaces inherited from interface IContainer
IContainer.Modifiable<E>, IContainer.Persistable<E>, IContainer.Persistence<E>Nested classes/interfaces inherited from interface ILifecycle
ILifecycle.DeferrableActivationNested classes/interfaces inherited from interface INotifier
INotifier.INotifier2 -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidclear()Requirescommit()to be called later if notisAutoCommit().voidcommit()voidcommit(boolean notifications) booleancontainsKey(Object key) booleancontainsValue(Object value) protected Vderegister(Object key) entrySet()getMap()protected Registry<K,V>.Transaction booleanbooleanisEmpty()keySet()Requirescommit()to be called later if notisAutoCommit().voidRequirescommit()to be called later if notisAutoCommit().protected VRequirescommit()to be called later if notisAutoCommit().voidsetAutoCommit(boolean autoCommit) intsize()toString()values()Methods inherited from class Container
fireContainerEvent, fireContainerEvent, fireContainerEvent, fireElementAddedEvent, fireElementRemovedEvent, fireElementsAddedEvent, fireElementsRemovedEvent, fireEvent, newContainerEvent, newContainerEventMethods inherited from class Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, doCancelActivation, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivationMethods inherited from class Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListenerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface INotifier
addListener, getListeners, hasListeners, removeListenerMethods inherited from interface 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
-
size
-
entrySet
-
keySet
-
values
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
get
-
put
-
putAll
-
remove
-
clear
-
getElements
- Specified by:
getElementsin interfaceIContainer<K>
-
isAutoCommit
public boolean isAutoCommit()- Specified by:
isAutoCommitin interfaceIRegistry<K,V>
-
setAutoCommit
public void setAutoCommit(boolean autoCommit) - Specified by:
setAutoCommitin interfaceIRegistry<K,V>
-
commit
-
commit
-
toString
-
register
-
deregister
-
getTransaction
-
autoCommit
protected void autoCommit() -
getMap
-