00001 package is;
00002
00008 public class SctRepository extends Repository {
00009 protected ipc.Partition p;
00010
00011 public SctRepository() {
00012 this(new ipc.Partition());
00013 }
00014
00015 public SctRepository(ipc.Partition p) {
00016 super(p);
00017 this.p = p;
00018 }
00019
00020 public void getValue (String name, Info info) throws is.RepositoryNotFoundException, is.InfoNotFoundException, is.InfoNotCompatibleException {
00021 is.repository rep = is.Repository.resolve(p, name);
00022
00023 org.omg.CORBA.StringHolder data = new org.omg.CORBA.StringHolder();
00024
00025 try {
00026 rep.find( name, data );
00027 } catch (org.omg.CORBA.COMM_FAILURE ex) {
00028 throw new is.RepositoryNotFoundException();
00029 } catch (is.NotFound ex) {
00030 throw new is.InfoNotFoundException();
00031 }
00032
00033 info.refreshGuts(new is.Istream(data.value));
00034 }
00035
00036 }