public class Serializer extends ScopeObserver
ScopeStatelogger| Constructor and Description |
|---|
Serializer() |
| Modifier and Type | Method and Description |
|---|---|
protected static File |
getSerializationFile(org.gcube.common.core.scope.GCUBEScope scope) |
static void |
load(ScopeState scopeState,
org.gcube.common.core.scope.GCUBEScope scope)
Loads the list of
ScopedResource from the local file system |
protected void |
scopeChanged(ScopeState scopeState)
Serializes the notified list on the file system
|
static void |
store(ScopeState scopeState) |
updateprotected void scopeChanged(ScopeState scopeState)
scopeChanged in class ScopeObserverscopeState - the list to serializepublic static void store(ScopeState scopeState) throws IOException
IOExceptionpublic static void load(ScopeState scopeState, org.gcube.common.core.scope.GCUBEScope scope) throws IOException
ScopedResource from the local file systemthe - actual scopeIOException - if the list was not found on the file systemprotected static File getSerializationFile(org.gcube.common.core.scope.GCUBEScope scope)
Copyright © 2014. All Rights Reserved.