Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-02


oracle.stellent.wcm.client.util
Class ConfigurationFileLoader

java.lang.Object
  extended by oracle.stellent.wcm.client.util.ConfigurationFileLoader

All Implemented Interfaces:
ClientApplication.ConfigurationLoader

public class ConfigurationFileLoader
extends java.lang.Object
implements ClientApplication.ConfigurationLoader

Loads and monitors a configuration file


Constructor Summary
ConfigurationFileLoader(Resource configFile)
           
ConfigurationFileLoader(Resource configFile, Resource runtimeConfig)
           

 

Method Summary
 Configuration getConfiguration()
           
 boolean isConfigUpdated()
          Check the URL of the configuration file to see if it was updated
protected  Configuration loadConfiguration(Resource configFile)
          Load the configuration file
protected  java.util.Properties loadRuntimeProperties(Resource runtimeConfig)
          Load the runtime properties from the given URL
protected  void modifyConfig(Configuration configuration)
          Allow subclasses to modify the config before attempting initialization

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ConfigurationFileLoader

public ConfigurationFileLoader(Resource configFile)

ConfigurationFileLoader

public ConfigurationFileLoader(Resource configFile,
                               Resource runtimeConfig)

Method Detail

getConfiguration

public Configuration getConfiguration()
                               throws ApplicationException
Specified by:
getConfiguration in interface ClientApplication.ConfigurationLoader
Returns:
the currently loaded configuration object
Throws:
ApplicationException

isConfigUpdated

public boolean isConfigUpdated()
Check the URL of the configuration file to see if it was updated
Returns:
true if the config file has been updated

loadRuntimeProperties

protected java.util.Properties loadRuntimeProperties(Resource runtimeConfig)
Load the runtime properties from the given URL
Parameters:
runtimeConfig - the resource to the runtime properties
Returns:
the properties object

loadConfiguration

protected Configuration loadConfiguration(Resource configFile)
                                   throws ApplicationException
Load the configuration file
Parameters:
configFile - the configuration file
Returns:
the configuration object
Throws:
ApplicationException

modifyConfig

protected void modifyConfig(Configuration configuration)
Allow subclasses to modify the config before attempting initialization
Parameters:
configuration - the configuration object

Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-02


Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.