01: package org.vraptor.webapp;
02:
03: import org.vraptor.component.ComponentContainer;
04: import org.vraptor.component.ComponentManager;
05: import org.vraptor.config.ConfigException;
06: import org.vraptor.converter.ConverterManager;
07: import org.vraptor.introspector.Introspector;
08: import org.vraptor.scope.ApplicationContext;
09: import org.vraptor.url.LogicLocator;
10: import org.vraptor.url.ViewLocator;
11: import org.vraptor.view.ViewManager;
12:
13: /**
14: * A web application.
15: *
16: * @author Guilherme Silveira
17: */
18: public interface WebApplication {
19:
20: /**
21: * Returns the url manager
22: *
23: * @return the url manager
24: */
25: LogicLocator getLogicLocator();
26:
27: /**
28: * Initializes the web application
29: *
30: * @throws ConfigException
31: *
32: */
33: void init() throws ConfigException;
34:
35: /**
36: * Returns the component manager
37: *
38: * @return the component manager
39: */
40: ComponentManager getComponentManager();
41:
42: /**
43: * Returns the view manager
44: *
45: * @return the view manager
46: */
47: ViewManager getDefaultViewManager();
48:
49: /**
50: * Returns the converter manager
51: *
52: * @return the converter manager
53: */
54: ConverterManager getConverterManager();
55:
56: /**
57: * Returns the plugin manager
58: *
59: * @return the plugin manager
60: */
61: PluginManager getPluginManager();
62:
63: /**
64: * Returns the application context.
65: *
66: * @return the application context
67: */
68: ApplicationContext getApplicationContext();
69:
70: void setViewManager(ViewManager viewManager);
71:
72: /**
73: * Returns the application introspector.
74: *
75: * @return the application introspector
76: * @since 2.2.4
77: */
78: Introspector getIntrospector();
79:
80: ComponentContainer getContainer();
81:
82: }
|