public class DataAccessRegistry extends Object implements Map<String,ModelController>
Constructor and Description |
---|
DataAccessRegistry() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public DataAccessRegistry()
public static DataAccessRegistry instance()
public static DataAccessRegistry load()
public void deregister(String bucket)
public static void shutdown()
public void loadAndHydrate() throws Exception
Exception
public void loadAndHydrate(String targetFolder, Settings settings) throws Exception
Exception
public ModelController registerDbModel(Class<? extends Model> model, Class<? extends ModelController> controller)
public ModelController registerDbModel(Class<? extends Model> model, Class<? extends ModelController> controller, boolean syncToMemory)
public ModelController registerDbModel(Class<? extends Model> model, Class<? extends ModelController> controller, Class<? extends Stash> stash)
public ModelController registerDbModel(Class<? extends Model> model, Class<? extends ModelController> controller, Class<? extends Stash> stash, String bucket)
model
- controller
- stash
- public ModelController register(DataAccessRegistration registration)
registration
- @Deprecated public ModelController getControllerForModelName(String modelName)
@Deprecated public ModelController getControllerForModel(Class<? extends Model> model)
public ModelController<? extends Model> get(String key)
public TextItemController<TextItem> getPages()
public void setPages(TextItemController<TextItem> pages)
public TextItemController<TextItem> getPosts()
public void setPosts(TextItemController<TextItem> posts)
public int size()
size
in interface Map<String,ModelController>
public boolean isEmpty()
isEmpty
in interface Map<String,ModelController>
public boolean containsKey(Object key)
containsKey
in interface Map<String,ModelController>
public boolean containsValue(Object value)
containsValue
in interface Map<String,ModelController>
public ModelController get(Object key)
get
in interface Map<String,ModelController>
public ModelController getNamespaced(String nameSpace, Object key)
public ModelController put(String key, ModelController value)
put
in interface Map<String,ModelController>
public ModelController remove(Object key)
remove
in interface Map<String,ModelController>
public void putAll(Map<? extends String,? extends ModelController> m)
putAll
in interface Map<String,ModelController>
public void clear()
clear
in interface Map<String,ModelController>
public Collection<ModelController> values()
values
in interface Map<String,ModelController>
public Set<Map.Entry<String,ModelController>> entrySet()
entrySet
in interface Map<String,ModelController>
public Tickets getTickets()
public void setTickets(Tickets tickets)
Copyright © 2016. All rights reserved.