KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > Connector > Boot > DCUPComponentManagerSRole


1 /* $Id: DCUPComponentManagerSRole.java,v 1.3 2004/05/20 14:23:50 bures Exp $ */
2 package SOFA.Connector.Boot;
3
4 import SOFA.Component.ComponentLifecycleException;
5 import SOFA.Component.NamingException;
6 import SOFA.Component.DCUP.DCUPComponentManager;
7 import SOFA.Connector.RoleBaseImpl;
8 import SOFA.SOFAnode.Run.Storage;
9
10 public class DCUPComponentManagerSRole extends RoleBaseImpl implements DCUPComponentManager {
11
12   private DCUPComponentManager tgt = null;
13
14   public DCUPComponentManagerSRole() {}
15
16   public void link(Object JavaDoc target) {
17     tgt = (DCUPComponentManager) target;
18   }
19
20
21   public void createComponent(Storage stateStore) throws ComponentLifecycleException {
22     tgt.createComponent(stateStore);
23   }
24
25   public void destroyComponent(Storage stateStore) throws ComponentLifecycleException {
26     tgt.destroyComponent(stateStore);
27   }
28
29   public void storeComponent(Storage stateStore) throws ComponentLifecycleException {
30     tgt.storeComponent(stateStore);
31   }
32
33   public void restoreComponent(Storage stateStore) throws ComponentLifecycleException {
34     tgt.restoreComponent(stateStore);
35   }
36
37   public void updateComponent(SOFA.SOFAnode.Run.Deployment.DeploymentDescriptor newDeploymentDescriptor, Storage stateStore) throws ComponentLifecycleException {
38     tgt.updateComponent(newDeploymentDescriptor, stateStore);
39   }
40
41   public void registerSubcomponent(java.lang.String JavaDoc name, SOFA.Connector.Reference target) throws SOFA.Component.NamingException, SOFA.Component.InstantiationException {
42     tgt.registerSubcomponent(name, target);
43   }
44   
45   public void unregisterSubcomponent(java.lang.String JavaDoc name) throws SOFA.Component.NamingException {
46     tgt.unregisterSubcomponent(name);
47   }
48
49   public SOFA.Connector.Reference getProvisionReference(String JavaDoc name) throws NamingException {
50     return tgt.getProvisionReference(name);
51   }
52   
53   public void setRequirement(String JavaDoc name, SOFA.Connector.Reference ref) throws SOFA.Component.InstantiationException, NamingException {
54     tgt.setRequirement(name, ref);
55   }
56   
57   public void connectSubsumable() throws NamingException, SOFA.Component.InstantiationException {
58     tgt.connectSubsumable();
59   }
60
61   public SOFA.SOFAnode.Run.Deployment.DeplDock getLocalDeplDock() {
62     return tgt.getLocalDeplDock();
63   }
64
65   public String JavaDoc getFullName() {
66     return tgt.getFullName();
67   }
68
69   public boolean isUpdatable() {
70     return tgt.isUpdatable();
71   }
72
73   public Object JavaDoc[] getFcInterfaces() {
74     return tgt.getFcInterfaces();
75   }
76   
77   public Object JavaDoc getFcInterface(java.lang.String JavaDoc itfName) throws org.objectweb.fractal.api.NoSuchInterfaceException {
78     return tgt.getFcInterface(itfName);
79   }
80   
81   public org.objectweb.fractal.api.Type getFcType() {
82     return this;
83   }
84
85   public boolean isFcSubtypeOf(org.objectweb.fractal.api.Type t) {
86     return tgt.isFcSubtypeOf(t);
87   }
88 }
89
Popular Tags