com.opensymphony.xwork2.config.PackageProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xwork Show documentation
Show all versions of xwork Show documentation
XWork is an command-pattern framework that is used to power WebWork
as well as other applications. XWork provides an Inversion of Control
container, a powerful expression language, data type conversion,
validation, and pluggable configuration.
/*
* Copyright (c) 2002-2006 by OpenSymphony
* All rights reserved.
*/
package com.opensymphony.xwork2.config;
/**
* Provides configuration packages. The separate init and loadPackages calls are due to the need to
* preserve backwards compatibility with the 2.0 {@link ConfigurationProvider} interface
*
* @since 2.1
*/
public interface PackageProvider {
/**
* Initializes with the configuration
* @param configuration The configuration
* @throws ConfigurationException If anything goes wrong
*/
public void init(Configuration configuration) throws ConfigurationException;
/**
* Tells whether the PackageProvider should reload its configuration
*
* @return true, whether the PackageProvider should reload its configuration, falseotherwise.
*/
public boolean needsReload();
/**
* Loads the packages for the configuration.
* @throws ConfigurationException
*/
public void loadPackages() throws ConfigurationException;
}