1
2
3
4
5
6
7
8
9
10
11
12
13 package org.abstracthorizon.danube.tapestry;
14
15 import java.util.ArrayList;
16 import java.util.List;
17
18 import org.apache.tapestry.describe.DescriptionReceiver;
19 import org.apache.tapestry.web.WebActivator;
20
21
22
23
24
25
26
27 public class DanubeActivator implements WebActivator {
28
29
30 protected TapestryConnectionHandler handler;
31
32
33
34
35
36 public DanubeActivator(TapestryConnectionHandler handler) {
37 this.handler = handler;
38 }
39
40
41
42
43
44 public String getActivatorName() {
45 return "Danube";
46 }
47
48
49
50
51
52 @SuppressWarnings("unchecked")
53 public List getInitParameterNames() {
54 ArrayList<String> names = new ArrayList<String>(handler.getInitialParameters().keySet());
55 return names;
56 }
57
58
59
60
61
62
63 public String getInitParameterValue(String name) {
64 return handler.getInitialParameters().get(name);
65 }
66
67
68
69
70 public void describeTo(DescriptionReceiver receiver) {
71 }
72
73 }