1 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 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 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 name) throws SOFA.Component.NamingException { 46 tgt.unregisterSubcomponent(name); 47 } 48 49 public SOFA.Connector.Reference getProvisionReference(String name) throws NamingException { 50 return tgt.getProvisionReference(name); 51 } 52 53 public void setRequirement(String 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 getFullName() { 66 return tgt.getFullName(); 67 } 68 69 public boolean isUpdatable() { 70 return tgt.isUpdatable(); 71 } 72 73 public Object [] getFcInterfaces() { 74 return tgt.getFcInterfaces(); 75 } 76 77 public Object getFcInterface(java.lang.String 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 |