Package org.eclipse.net4j.util.container
Class PersistableContainer<E>
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<E>
org.eclipse.net4j.util.container.ModifiableContainer<E>
org.eclipse.net4j.util.container.PersistableContainer<E>
- All Implemented Interfaces:
IContainer<E>
,IContainer.Modifiable<E>
,IContainer.Persistable<E>
,INotifier
,INotifier.INotifier2
,IDeactivateable
,ILifecycle
,ILifecycle.DeferrableActivation
- Direct Known Subclasses:
ListContainer
,SetContainer
public abstract class PersistableContainer<E>
extends ModifiableContainer<E>
implements IContainer.Persistable<E>
An abstract implementation of a
container
.- Since:
- 3.18
- 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
Called outside synchronized(this).protected void
protected void
boolean
void
load()
void
save()
void
setPersistence
(IContainer.Persistence<E> persistence) Methods inherited from class org.eclipse.net4j.util.container.ModifiableContainer
addAllElements, addElement, backingStoreAdd, backingStoreClear, backingStoreContains, backingStoreForEach, backingStoreIsEmpty, backingStoreRemove, backingStoreSize, backingStoreToArray, clear, elementAdded, elementRemoved, firstElementAdded, getComponentType, getElements, isEmpty, lastElementRemoved, removeAllElements, removeElement, sortElements, validateElement
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, doAfterActivate, doBeforeActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
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.container.IContainer
getElements, isEmpty
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Constructor Details
-
PersistableContainer
-
-
Method Details
-
getPersistence
- Specified by:
getPersistence
in interfaceIContainer.Persistable<E>
-
setPersistence
- Specified by:
setPersistence
in interfaceIContainer.Persistable<E>
- Since:
- 3.5
-
isSavedWhenModified
public boolean isSavedWhenModified() -
load
- Specified by:
load
in interfaceIContainer.Persistable<E>
- Throws:
IORuntimeException
-
save
- Specified by:
save
in interfaceIContainer.Persistable<E>
- Throws:
IORuntimeException
- Since:
- 3.5
-
doActivate
- Overrides:
doActivate
in classLifecycle
- Throws:
Exception
-
doDeactivate
- Overrides:
doDeactivate
in classLifecycle
- Throws:
Exception
-
containerModified
protected void containerModified()Description copied from class:ModifiableContainer
Called outside synchronized(this).- Overrides:
containerModified
in classModifiableContainer<E>
-