01: package org.vraptor.config;
02:
03: import org.vraptor.webapp.WebApplication;
04:
05: /**
06: * A configuration item.
07: *
08: * @author Guilherme Silveira
09: */
10: public interface ConfigItem {
11:
12: /**
13: * Registers itself in the web application
14: *
15: * @param application
16: * the application
17: * @throws ConfigException
18: * configuration exception
19: */
20: void register(WebApplication application) throws ConfigException;
21:
22: /**
23: * Returns true if this is a component, factory or converter
24: *
25: * @return true or false
26: */
27: boolean isComponent();
28:
29: /**
30: * Returns true if this is a manager configuration
31: *
32: * @return true or false
33: */
34: boolean isManager();
35:
36: }
|