コード例 #1
0
 @Override
 public void dispose() {
   if (serviceRegistration != null) {
     serviceRegistration.unregister();
   }
   super.dispose();
 }
コード例 #2
0
 @Override
 public void start(Server server) throws IOException {
   super.start(server);
   serviceRegistration = context.registerService(LocalTransport.class, this, null);
 }