Package org.rspeer.environment.config
Class FSConfigLoader<T>
- java.lang.Object
-
- org.rspeer.environment.config.FSConfigLoader<T>
-
- All Implemented Interfaces:
ConfigLoader<T>
public class FSConfigLoader<T> extends java.lang.Object implements ConfigLoader<T>
File-System based ConfigLoader implementation
-
-
Field Summary
-
Fields inherited from interface org.rspeer.environment.config.ConfigLoader
GSON
-
-
Constructor Summary
Constructors Constructor Description FSConfigLoader(java.lang.String name, java.lang.Class<T> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(Config config)
java.util.List<Config>
getAll()
java.lang.String
getName()
java.lang.Class<T>
getType()
ConfigLoader<T>
initialize()
Config
save(T element, java.lang.String name)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.rspeer.environment.config.ConfigLoader
deserialize
-
-
-
-
Constructor Detail
-
FSConfigLoader
public FSConfigLoader(java.lang.String name, java.lang.Class<T> type)
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceConfigLoader<T>
-
getType
public java.lang.Class<T> getType()
- Specified by:
getType
in interfaceConfigLoader<T>
-
initialize
public ConfigLoader<T> initialize()
- Specified by:
initialize
in interfaceConfigLoader<T>
-
getAll
public java.util.List<Config> getAll()
- Specified by:
getAll
in interfaceConfigLoader<T>
-
save
public Config save(T element, java.lang.String name)
- Specified by:
save
in interfaceConfigLoader<T>
-
delete
public void delete(Config config)
- Specified by:
delete
in interfaceConfigLoader<T>
-
-