Groovy Documentation

griffon.plugins.preferences.persistors
[Java] Class JsonPreferencesPersistor

java.lang.Object
  griffon.plugins.preferences.persistors.JsonPreferencesPersistor
All Implemented Interfaces:
ApplicationHandler, PreferencesPersistor

public class JsonPreferencesPersistor
extends Object

Authors:
Andres Almiray


Field Summary
private static String KEY_PREFERENCES_PERSISTOR_LOCATION

private static org.slf4j.Logger LOG

private GriffonApplication app

 
Constructor Summary
JsonPreferencesPersistor(GriffonApplication app)

 
Method Summary
private Object convertValue(Object value)

GriffonApplication getApp()

private InputStream inputStream()

private OutputStream outputStream()

Preferences read(PreferencesManager preferencesManager)

private void readInto(Map map, PreferencesNode node)

private String resolvePreferencesFileName()

void write(PreferencesManager preferencesManager)

private void writeTo(PreferencesNode node, Map map)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

KEY_PREFERENCES_PERSISTOR_LOCATION

private static final String KEY_PREFERENCES_PERSISTOR_LOCATION


LOG

private static final org.slf4j.Logger LOG


app

private final GriffonApplication app


 
Constructor Detail

JsonPreferencesPersistor

public JsonPreferencesPersistor(GriffonApplication app)


 
Method Detail

convertValue

private Object convertValue(Object value)


getApp

public GriffonApplication getApp()


inputStream

private InputStream inputStream()


outputStream

private OutputStream outputStream()


read

@SuppressWarnings("unchecked")
public Preferences read(PreferencesManager preferencesManager)


readInto

@SuppressWarningsprivate void readInto(Map map, PreferencesNode node) {
private void readInto(Map map, PreferencesNode node)


resolvePreferencesFileName

private String resolvePreferencesFileName()


write

public void write(PreferencesManager preferencesManager)


writeTo

private void writeTo(PreferencesNode node, Map map)


 

Groovy Documentation