com.cloudbees.sdk.utils
Class PersistedGAVStore

java.lang.Object
  extended by java.util.AbstractMap<String,V>
      extended by com.cloudbees.sdk.utils.PersistedStore<com.cloudbees.sdk.GAV>
          extended by com.cloudbees.sdk.utils.PersistedGAVStore
All Implemented Interfaces:
Map<String,com.cloudbees.sdk.GAV>
Direct Known Subclasses:
InstalledExtensionList

public abstract class PersistedGAVStore
extends PersistedStore<com.cloudbees.sdk.GAV>

PersistedStore for GAV.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
PersistedGAVStore()
           
 
Method Summary
protected  com.cloudbees.sdk.GAV read(File f)
          Reads a data file 'f' into the value.
protected  void write(File f, com.cloudbees.sdk.GAV v)
          Writes the given value to the file
 
Methods inherited from class com.cloudbees.sdk.utils.PersistedStore
_write, clear, containsKey, entrySet, get, get, getStorageDirectory, keySet, put, remove, remove
 
Methods inherited from class java.util.AbstractMap
clone, containsValue, equals, hashCode, isEmpty, putAll, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersistedGAVStore

public PersistedGAVStore()
Method Detail

read

protected com.cloudbees.sdk.GAV read(File f)
Description copied from class: PersistedStore
Reads a data file 'f' into the value.

Specified by:
read in class PersistedStore<com.cloudbees.sdk.GAV>
Returns:
null if the file doesn't exist or the content is empty.

write

protected void write(File f,
                     com.cloudbees.sdk.GAV v)
Description copied from class: PersistedStore
Writes the given value to the file

Specified by:
write in class PersistedStore<com.cloudbees.sdk.GAV>
v - Never null.


Copyright © 2011-2013. All Rights Reserved.