コード例 #1
0
 protected void hydrateBasic(MutableService descriptor, Service undescribedService) {
   descriptor.serviceId = undescribedService.getServiceId();
   descriptor.serviceType = undescribedService.getServiceType();
   if (undescribedService instanceof RemoteService) {
     RemoteService rs = (RemoteService) undescribedService;
     descriptor.controlURI = rs.getControlURI();
     descriptor.eventSubscriptionURI = rs.getEventSubscriptionURI();
     descriptor.descriptorURI = rs.getDescriptorURI();
   }
 }
コード例 #2
0
 protected <S extends Service> S buildInstance(S undescribedService, MutableService descriptor)
     throws ValidationException {
   return (S) descriptor.build(undescribedService.getDevice());
 }