コード例 #1
0
 @Override
 protected ModuleRegistrationResource instantiateResource(ArtifactRegistration registration) {
   return new ModuleRegistrationResource(
       registration.getName(),
       registration.getType().name(),
       registration.getCoordinates().toString());
 }
コード例 #2
0
 @Override
 public ModuleRegistrationResource toResource(ArtifactRegistration registration) {
   return createResourceWithId(
       String.format("%s/%s", registration.getType(), registration.getName()), registration);
 }