blob: 799622b31d99c34caeb888d67f82d8cffcc63791 (
plain)
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
|
package com.vaadin.tests.application;
import java.util.Properties;
import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI;
import com.vaadin.ui.VerticalLayout;
public class DeploymentConfigurationTest extends UI {
@Override
protected void init(VaadinRequest request) {
VerticalLayout layout = new VerticalLayout();
layout.setMargin(true);
setContent(layout);
Properties params = getSession().getConfiguration().getInitParameters();
for (Object key : params.keySet()) {
layout.addComponent(new Label(key + ": "
+ params.getProperty((String) key)));
}
}
}
|