View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership. The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License. You may obtain a copy of the License at
9    * 
10   *      http://www.apache.org/licenses/LICENSE-2.0
11   * 
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
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   * This class is not serial form compatible with Jini 2.1.  This is provided
29   * for api compatibility with Jini 2.1.  Please upgrade at your earliest
30   * convenience.
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  }