1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
10 |
| |
11 |
| |
12 |
| |
13 |
| |
14 |
| |
15 |
| package org.apache.hivemind.impl; |
16 |
| |
17 |
| import org.apache.hivemind.internal.Module; |
18 |
| import org.apache.hivemind.internal.ServiceImplementationConstructor; |
19 |
| import org.apache.hivemind.util.InstanceCreationUtils; |
20 |
| |
21 |
| |
22 |
| |
23 |
| |
24 |
| |
25 |
| |
26 |
| public final class CreateClassServiceConstructor extends BaseLocatable implements |
27 |
| ServiceImplementationConstructor |
28 |
| { |
29 |
| private Module _contributingModule; |
30 |
| |
31 |
| private String _instanceClassName; |
32 |
| |
33 |
12405
| public Object constructCoreServiceImplementation()
|
34 |
| { |
35 |
12418
| return InstanceCreationUtils.createInstance(
|
36 |
| _contributingModule, |
37 |
| _instanceClassName, |
38 |
| getLocation()); |
39 |
| } |
40 |
| |
41 |
1
| public Module getContributingModule()
|
42 |
| { |
43 |
1
| return _contributingModule;
|
44 |
| } |
45 |
| |
46 |
1
| public String getInstanceClassName()
|
47 |
| { |
48 |
1
| return _instanceClassName;
|
49 |
| } |
50 |
| |
51 |
1284
| public void setContributingModule(Module module)
|
52 |
| { |
53 |
1284
| _contributingModule = module;
|
54 |
| } |
55 |
| |
56 |
1284
| public void setInstanceClassName(String string)
|
57 |
| { |
58 |
1284
| _instanceClassName = string;
|
59 |
| } |
60 |
| |
61 |
| } |