示例#1
0
 @Override
 public AddRawServicePhase defineService(
     final Service service, final String path, final ServiceBindingProvider provider) {
   final ServiceBuilder builder = defineService(service, path);
   provider.configureService(builder);
   builder.addService();
   return this;
 }
示例#2
0
 @Override
 public AddServiceFromContextPhase defineServiceFromContext(
     final String ctxName,
     final Class<? extends Service> serviceType,
     final String path,
     final boolean bindPrefix,
     final ContextBasedServiceBindingProvider provider) {
   final Service service = ctx.getBean(ctxName, serviceType);
   final ServiceBuilder builder = new ServiceBuilder(service, path, bindPrefix);
   provider.configureService(builder);
   builder.addService();
   return this;
 }