Java Reference
In-Depth Information
try {
IxcRegistry registry = IxcRegistry.getRegistry(context);
if ( registry == null ) {
throw new XLetStateChangeException("No registry");
}
registry.bind(NAME, location);
}
catch(AlreadyBoundException e){
throw new XletStateChangeException("Something bound");
}
catch(StubException e){
throw new XletStateChangeException("Stub error");
}
}
public void pauseXlet() {
}
public void startXlet()
throws XletStateChangeException {
}
public void destroyXlet(boolean b)
throws XletStateChangeException {
IxcRegistry registry = IxcRegistry.getRegistry(context);
if ( registry == null ) {
throw new XLetStateChangeException("No registry");
}
registry.unbindAll();
}
}
The Xlet creates an instance of the Location class it wants to remote during initial-
ization, and it uses the IxcRegistry for the current XletContext to bind it to the name
XletLocationProducer.Location . This should always succeed, but it can fail for one of
three reasons:
 
Search WWH ::




Custom Search