net.ranides.assira.config
Class XMLConfiguration

java.lang.Object
  extended by net.ranides.assira.events.EventRouterDispatcher
      extended by net.ranides.assira.config.AbstractConfiguration
          extended by net.ranides.assira.config.XMLConfiguration
All Implemented Interfaces:
Configuration, EventListener<Event>, EventRouter

public class XMLConfiguration
extends AbstractConfiguration

Klasa obsługująca dostęp do plików z konfiguracją w formacie JSON.

Author:
ranides

Constructor Summary
XMLConfiguration(String path)
          Tworzy nową konfigurację powiązaną z zasobem wskazywanym przez ścieżkę.
 
Method Summary
 Configuration load()
          Ładuje konfigurację z persistent storage
 Configuration save()
          Zapisuje konfigurację do persistent storage
 
Methods inherited from class net.ranides.assira.config.AbstractConfiguration
asFlatMap, asMap, get, get, get, get, getList, getList, path, put, put, putList, putList
 
Methods inherited from class net.ranides.assira.events.EventRouterDispatcher
addEventListener, dispose, getEventListeners, handleEvent, removeAllEventListeners, removeEventListener, signalEvent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.ranides.assira.events.EventRouter
addEventListener, dispose, getEventListeners, removeAllEventListeners, removeEventListener, signalEvent
 
Methods inherited from interface net.ranides.assira.events.EventListener
handleEvent
 

Constructor Detail

XMLConfiguration

public XMLConfiguration(String path)
Tworzy nową konfigurację powiązaną z zasobem wskazywanym przez ścieżkę. Wskazany zasób musi prowadzić do treści w formacie JSON.

Parameters:
path -
Method Detail

load

public Configuration load()
                   throws ConfigException
Description copied from interface: Configuration
Ładuje konfigurację z persistent storage

Returns:
Throws:
ConfigException

save

public Configuration save()
                   throws ConfigException
Description copied from interface: Configuration
Zapisuje konfigurację do persistent storage

Returns:
Throws:
ConfigException


Copyright © 2013. All Rights Reserved.