01: /*
02: * Copyright (c) 2002-2006 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.xwork.config;
06:
07: /**
08: * Interface to be implemented by all forms of XWork configuration classes.
09: *
10: * @author $Author: rainerh $
11: * @version $Revision: 860 $
12: */
13: public interface ConfigurationProvider {
14:
15: public void destroy();
16:
17: /**
18: * Initializes the configuration object.
19: */
20: public void init(Configuration configuration)
21: throws ConfigurationException;
22:
23: /**
24: * Tells whether the ConfigurationProvider should reload its configuration
25: *
26: * @return <tt>true</tt>, whether the ConfigurationProvider should reload its configuration, <tt>false</tt>otherwise.
27: */
28: public boolean needsReload();
29: }
|