1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
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 }