-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomApplicationConfiguration.java
43 lines (35 loc) · 1.2 KB
/
CustomApplicationConfiguration.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package @project.package@;
import @[email protected];
import org.romaframework.aspect.flow.FlowAspect;
import org.romaframework.aspect.view.ViewAspect;
import org.romaframework.aspect.view.command.impl.RedirectViewCommand;
import org.romaframework.core.Roma;
import org.romaframework.core.config.AbstractApplicationConfiguration;
/**
* Application's configuration class valued by the Component Engine. <br/>Use the 'configuration' field map to store application specific parameters.
* @author #{author}
*
*/
public class CustomApplicationConfiguration extends AbstractApplicationConfiguration {
public void startup() {
// INSERT APPLICATION STARTUP HERE
}
public void shutdown() {
// INSERT APPLICATION SHUTDOWN HERE
}
/**
* Callback called on every user connected to the application
*/
public void startUserSession() {
Roma.aspect(FlowAspect.class).forward(new HomePage());
}
/**
* Callback called on every user disconnected from application
*/
public void endUserSession() {
Roma.aspect(ViewAspect.class).pushCommand(new RedirectViewCommand("dynamic/logout.jsp"));
}
public String getStatus() {
return STATUS_UNKNOWN;
}
}