KickJava   Java API By Example, From Geeks To Geeks.

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


1 /* $Id: DeplDockSRole.java,v 1.1.1.1 2003/02/11 16:19:40 bures Exp $ */
2 package SOFA.Connector.Boot;
3
4 import SOFA.SOFAnode.Run.Deployment.DeplDock;
5
6 /** SRole for DeplDock.
7   *
8   * @author Petr Hnetynka
9   */

10 public class DeplDockSRole extends SOFA.Connector.RoleBaseImpl implements CNDeplDock {
11   
12   private SOFA.SOFAnode.Run.Deployment.DeplDock tgt = null;
13
14   public DeplDockSRole() {}
15
16   public void link(Object JavaDoc target) throws SOFA.Connector.LinkException {
17     tgt = (DeplDock) target;
18   }
19
20   public SOFA.SOFAnode.Run.Deployment.TechnologyDescriptor[] describeUnderlyingEnvironment() {
21     return tgt.describeUnderlyingEnvironment();
22   }
23   
24   public SOFA.Connector.Reference instantiate(SOFA.SOFAnode.Run.Deployment.DeploymentDescriptor dd, String JavaDoc name) throws SOFA.SOFAnode.Run.Deployment.DeploymentException {
25     return tgt.instantiate(dd, name);
26   }
27
28   public String JavaDoc[] namesOfAllRunningComponents() {
29     return tgt.namesOfAllRunningComponents();
30   }
31   
32   public String JavaDoc[] namesOfAllRunningApplications() {
33     return tgt.namesOfAllRunningApplications();
34   }
35
36   public SOFA.Connector.Reference getReference(String JavaDoc name) throws SOFA.SOFAnode.Run.Deployment.DeploymentException {
37     return tgt.getReference(name);
38   }
39
40   public void removeComponent(String JavaDoc name) throws SOFA.SOFAnode.Run.Deployment.DeploymentException {
41     tgt.removeComponent(name);
42   }
43 }
44
Popular Tags