1 /**
2 *
3 */
4 package siouxsie.mvc.test;
5
6 import siouxsie.mvc.IActionTrigger;
7
8 import com.opensymphony.xwork2.config.Configuration;
9 import com.opensymphony.xwork2.config.ConfigurationException;
10 import com.opensymphony.xwork2.config.ContainerProvider;
11 import com.opensymphony.xwork2.inject.ContainerBuilder;
12 import com.opensymphony.xwork2.inject.Scope;
13 import com.opensymphony.xwork2.util.location.LocatableProperties;
14
15 /**
16 * @author Arnaud Cogoluegnes
17 * @version $Id: TestContainerProvider.java 143 2008-06-03 20:37:37Z acogo $
18 */
19 public class TestContainerProvider implements ContainerProvider {
20
21
22
23
24
25 public void register(ContainerBuilder builder, LocatableProperties props)
26 throws ConfigurationException {
27
28 builder.factory(IActionTrigger.class,ConsoleActionTrigger.class,Scope.SINGLETON);
29
30 }
31
32
33
34
35 public void destroy() {}
36
37
38
39
40 public void init(Configuration conf) throws ConfigurationException {}
41
42
43
44
45 public boolean needsReload() {
46 return false;
47 }
48
49
50
51 }