com.atlassian.theplugin.commons.cfg
Class GlobalConfigurationFactoryImpl

java.lang.Object
  extended by com.atlassian.theplugin.commons.cfg.GlobalConfigurationFactoryImpl
All Implemented Interfaces:
GlobalConfigurationFactory

public class GlobalConfigurationFactoryImpl
extends java.lang.Object
implements GlobalConfigurationFactory


Constructor Summary
GlobalConfigurationFactoryImpl(java.lang.String globalSettingsFileName, java.lang.String projectSettingsFileName)
           
 
Method Summary
 GlobalConfiguration load()
           
 java.util.Collection<ServerCfg> loadGlobalServers()
           
 ProjectConfiguration loadProjectConfiguration()
           
 java.util.Collection<ServerCfg> loadProjectSpecificServers()
           
 java.util.Collection<ServerCfg> loadServers(com.atlassian.theplugin.commons.cfg.GlobalConfigurationFactoryImpl.InputStreamProvider inputStreamProvider)
           
 void save(GlobalConfiguration globalConfiguration)
           
 void saveGlobalServers(java.util.Collection<ServerCfg> servers)
           
 void saveProjectSpecificServers(java.util.Collection<ServerCfg> servers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalConfigurationFactoryImpl

public GlobalConfigurationFactoryImpl(java.lang.String globalSettingsFileName,
                                      java.lang.String projectSettingsFileName)
Method Detail

loadProjectConfiguration

public ProjectConfiguration loadProjectConfiguration()
                                              throws ServerCfgFactoryException
Throws:
ServerCfgFactoryException

load

public GlobalConfiguration load()
                         throws ServerCfgFactoryException
Specified by:
load in interface GlobalConfigurationFactory
Throws:
ServerCfgFactoryException

loadGlobalServers

public java.util.Collection<ServerCfg> loadGlobalServers()
                                                  throws ServerCfgFactoryException
Throws:
ServerCfgFactoryException

loadServers

public java.util.Collection<ServerCfg> loadServers(com.atlassian.theplugin.commons.cfg.GlobalConfigurationFactoryImpl.InputStreamProvider inputStreamProvider)
                                            throws ServerCfgFactoryException
Throws:
ServerCfgFactoryException

loadProjectSpecificServers

public java.util.Collection<ServerCfg> loadProjectSpecificServers()
                                                           throws ServerCfgFactoryException
Throws:
ServerCfgFactoryException

saveGlobalServers

public void saveGlobalServers(java.util.Collection<ServerCfg> servers)
                       throws ServerCfgFactoryException
Throws:
ServerCfgFactoryException

saveProjectSpecificServers

public void saveProjectSpecificServers(java.util.Collection<ServerCfg> servers)
                                throws ServerCfgFactoryException
Throws:
ServerCfgFactoryException

save

public void save(GlobalConfiguration globalConfiguration)
          throws ServerCfgFactoryException
Specified by:
save in interface GlobalConfigurationFactory
Throws:
ServerCfgFactoryException


Copyright © 2008-2009 Atlassian Pty Ltd. All Rights Reserved.