View Javadoc
1   /*
2    * This program is free software; you can redistribute it and/or
3    * modify it under the terms of the GNU General Public License
4    * as published by the Free Software Foundation; either version 2
5    * of the License, or (at your option) any later version.
6    *
7    * This program is distributed in the hope that it will be useful,
8    * but WITHOUT ANY WARRANTY; without even the implied warranty of
9    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10   * GNU General Public License for more details.
11   * 
12   * Full GNU GPL license terms : http://www.fsf.org/licenses/gpl.txt
13   *
14   * Author : mchaplin@users.sourceforge.net
15   * 
16   * Created on Apr 25, 2004
17   * 
18   */
19  package net.mchaplin.ioc.rmi;
20  
21  import java.rmi.RemoteException;
22  import java.rmi.server.UnicastRemoteObject;
23  
24  import net.mchaplin.ioc.ContainerI;
25  import net.mchaplin.ioc.component.ComponentI;
26  import net.mchaplin.ioc.service.ServiceI;
27  
28  
29  /***
30   * @author mchaplin@users.sourceforge.net
31   *
32   */
33  public class RmiService extends UnicastRemoteObject implements ServiceI, ComponentI {
34      
35      static final long serialVersionUID = 0;
36      private ContainerI container = null;
37      
38      /***
39       * @see net.mchaplin.ioc.service.ServiceI#getState()
40       */
41      public String getState() {
42          return null;
43      }
44      public RmiService() throws RemoteException {
45          super();
46      }
47      
48      
49  
50      /***
51       * @see net.mchaplin.ioc.component.ComponentI#reset()
52       */
53      public void reset() {
54          // TODO Auto-generated method stub
55      }
56      
57      /***
58       * @return Returns the container.
59       */
60      public ContainerI getContainer() {
61          return container;
62      }
63      /***
64       * @param container The container to set.
65       */
66      public void setContainer(ContainerI container) {
67          this.container = container;
68      }
69  }