1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package net.sf.tacos.javascript.dojo;
19
20 import org.apache.hivemind.ServiceImplementationFactory;
21 import org.apache.hivemind.ServiceImplementationFactoryParameters;
22 import org.apache.tapestry.javascript.JavascriptManager;
23
24
25
26
27
28 public class DojoDelegateFactory implements ServiceImplementationFactory {
29 private JavascriptManager javascriptManager;
30
31 public void setJavascriptManager(JavascriptManager javascriptManager) {
32 this.javascriptManager = javascriptManager;
33 }
34
35 public Object createCoreServiceImplementation(ServiceImplementationFactoryParameters factoryParameters) {
36 return new DojoOneShellDelegate(javascriptManager);
37 }
38 }