KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > SOFAnode > TR > Connector > TR2InOutLocalStub


1 /**
2  * TR2InOutLocalStub.java is a part of the SOFA project.
3  * This file was created by pepan on 19.3.2003.
4  */

5 package SOFA.SOFAnode.TR.Connector;
6
7 import SOFA.SOFAnode.InOut.Bundle;
8 import SOFA.SOFAnode.TR.ComponentInfo;
9 import SOFA.SOFAnode.TR.TRException;
10
11 /**
12  * @author Petr Panuska
13  */

14 public class TR2InOutLocalStub implements CNTR2InOut {
15   private CNTR2InOut target;
16
17   public TR2InOutLocalStub (CNTR2InOut target) {
18     this.target = target;
19   }
20
21   public void storeBundle (Bundle bundle) throws TRException {
22     target.storeBundle(bundle);
23   }
24
25   public Bundle getBundle (ComponentInfo[] descs, ComponentInfo[] comps, boolean inferiors) throws TRException {
26     return target.getBundle(descs, comps, inferiors);
27   }
28
29   public boolean contains (ComponentInfo descrs) {
30     return target.contains(descrs);
31   }
32
33   public Bundle list () {
34     return target.list();
35   }
36
37 }
38
Popular Tags