com.opensymphony.xwork2.config
Interface Configuration

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultConfiguration, MockConfiguration

public interface Configuration
extends Serializable

XWork configuration.

Author:
Mike

Method Summary
 void addPackageConfig(String name, PackageConfig packageConfig)
           
 void destroy()
          Allow the Configuration to clean up any resources that have been used.
 Container getContainer()
           
 Set<String> getLoadedFileNames()
           
 PackageConfig getPackageConfig(String name)
           
 Set getPackageConfigNames()
           
 Map getPackageConfigs()
           
 RuntimeConfiguration getRuntimeConfiguration()
          The current runtime configuration.
 void rebuildRuntimeConfiguration()
           
 void reload(List<ConfigurationProvider> providers)
           
 void removePackageConfig(String name)
           
 

Method Detail

rebuildRuntimeConfiguration

void rebuildRuntimeConfiguration()

getPackageConfig

PackageConfig getPackageConfig(String name)

getPackageConfigNames

Set getPackageConfigNames()

getPackageConfigs

Map getPackageConfigs()

getRuntimeConfiguration

RuntimeConfiguration getRuntimeConfiguration()
The current runtime configuration. Currently, if changes have been made to the Configuration since the last time buildRuntimeConfiguration() was called, you'll need to make sure to.

Returns:
the current runtime configuration

addPackageConfig

void addPackageConfig(String name,
                      PackageConfig packageConfig)

destroy

void destroy()
Allow the Configuration to clean up any resources that have been used.


reload

void reload(List<ConfigurationProvider> providers)
            throws ConfigurationException
Throws:
ConfigurationException

removePackageConfig

void removePackageConfig(String name)

getContainer

Container getContainer()
Returns:
the container

getLoadedFileNames

Set<String> getLoadedFileNames()


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.