View Javadoc
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  	/* (non-Javadoc)
23  	 * @see com.opensymphony.xwork2.config.ContainerProvider#register(com.opensymphony.xwork2.inject.ContainerBuilder, com.opensymphony.xwork2.util.location.LocatableProperties)
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  	/* (non-Javadoc)
33  	 * @see com.opensymphony.xwork2.config.ContainerProvider#destroy()
34  	 */
35  	public void destroy() {}
36  
37  	/* (non-Javadoc)
38  	 * @see com.opensymphony.xwork2.config.ContainerProvider#init(com.opensymphony.xwork2.config.Configuration)
39  	 */
40  	public void init(Configuration conf) throws ConfigurationException {}
41  
42  	/* (non-Javadoc)
43  	 * @see com.opensymphony.xwork2.config.ContainerProvider#needsReload()
44  	 */
45  	public boolean needsReload() {
46  		return false;
47  	}
48  
49  	
50  
51  }