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.DeferrableActivationNested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
INotifier.INotifier2 -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCalled outside synchronized(this).protected voidprotected voidbooleanvoidload()voidsave()voidsetPersistence(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, validateElementMethods inherited from class org.eclipse.net4j.util.container.Container
fireContainerEvent, fireContainerEvent, fireContainerEvent, fireElementAddedEvent, fireElementRemovedEvent, fireElementsAddedEvent, fireElementsRemovedEvent, fireEvent, newContainerEvent, newContainerEventMethods 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, toStringMethods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.net4j.util.container.IContainer
getElements, isEmptyMethods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Constructor Details
-
PersistableContainer
-
-
Method Details
-
getPersistence
- Specified by:
getPersistencein interfaceIContainer.Persistable<E>
-
setPersistence
- Specified by:
setPersistencein interfaceIContainer.Persistable<E>- Since:
- 3.5
-
isSavedWhenModified
public boolean isSavedWhenModified() -
load
- Specified by:
loadin interfaceIContainer.Persistable<E>- Throws:
IORuntimeException
-
save
- Specified by:
savein interfaceIContainer.Persistable<E>- Throws:
IORuntimeException- Since:
- 3.5
-
doActivate
- Overrides:
doActivatein classLifecycle- Throws:
Exception
-
doDeactivate
- Overrides:
doDeactivatein classLifecycle- Throws:
Exception
-
containerModified
protected void containerModified()Description copied from class:ModifiableContainerCalled outside synchronized(this).- Overrides:
containerModifiedin classModifiableContainer<E>
-