1 /* 2 * Copyright (c) 2008-2019 Emmanuel Dupuy. 3 * This project is distributed under the GPLv3 license. 4 * This is a Copyleft license that gives the user the right to use, 5 * copy and modify the code freely for non-commercial purposes. 6 */ 7 8 package org.jd.gui.service.configuration; 9 10 public class ConfigurationPersisterService { 11 protected static final ConfigurationPersisterService CONFIGURATION_PERSISTER_SERVICE = new ConfigurationPersisterService(); 12 13 protected ConfigurationPersister provider = new ConfigurationXmlPersisterProvider(); 14 getInstance()15 public static ConfigurationPersisterService getInstance() { return CONFIGURATION_PERSISTER_SERVICE; } 16 ConfigurationPersisterService()17 protected ConfigurationPersisterService() {} 18 get()19 public ConfigurationPersister get() { 20 return provider; 21 } 22 } 23