1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package com.sun.jini.start;
20
21 import java.io.IOException;
22 import net.jini.config.Configuration;
23 import net.jini.security.ProxyPreparer;
24 import org.apache.river.api.io.AtomicSerial;
25 import org.apache.river.start.lifecycle.LifeCycle;
26
27
28
29
30
31
32 @Deprecated
33 @AtomicSerial
34 public class NonActivatableServiceDescriptor extends org.apache.river.start.NonActivatableServiceDescriptor {
35
36 public NonActivatableServiceDescriptor(String exportCodebase, String policy, String importCodebase, String implClassName, String[] serverConfigArgs, LifeCycle lifeCycle, ProxyPreparer preparer) {
37 super(exportCodebase, policy, importCodebase, implClassName, serverConfigArgs, lifeCycle, preparer);
38 }
39 public NonActivatableServiceDescriptor(AtomicSerial.GetArg arg) throws IOException {
40 super(arg);
41 }
42
43 public NonActivatableServiceDescriptor(String exportCodebase, String policy, String importCodebase, String implClassName, Configuration config, LifeCycle lifeCycle, ProxyPreparer preparer) {
44 super(exportCodebase, policy, importCodebase, implClassName, config, lifeCycle, preparer);
45 }
46
47 public NonActivatableServiceDescriptor(String exportCodebase, String policy, String importCodebase, String implClassName, String[] serverConfigArgs, LifeCycle lifeCycle) {
48 super(exportCodebase, policy, importCodebase, implClassName, serverConfigArgs, lifeCycle);
49 }
50
51 public NonActivatableServiceDescriptor(String exportCodebase, String policy, String importCodebase, String implClassName, String[] serverConfigArgs) {
52 super(exportCodebase, policy, importCodebase, implClassName, serverConfigArgs);
53 }
54
55 public NonActivatableServiceDescriptor(String exportCodebase, String policy, String importCodebase, String implClassName, String[] serverConfigArgs, ProxyPreparer preparer) {
56 super(exportCodebase, policy, importCodebase, implClassName, serverConfigArgs, preparer);
57 }
58
59 @Override
60 public Object create(Configuration config) throws Exception {
61 Object created = super.create(config);
62 if (created instanceof org.apache.river.start.NonActivatableServiceDescriptor.Created){
63 org.apache.river.start.NonActivatableServiceDescriptor.Created crt =
64 (org.apache.river.start.NonActivatableServiceDescriptor.Created) created;
65 return new Created(crt.impl, crt.proxy);
66 }
67 return created;
68 }
69
70 public static class Created extends org.apache.river.start.NonActivatableServiceDescriptor.Created {
71
72 public Created(Object impl, Object proxy) {
73 super(impl, proxy);
74 }
75
76 }
77
78 }