Examples of addService()


Examples of org.sonatype.aether.impl.internal.DefaultServiceLocator.addService()

        locator.addService(VersionResolver.class, DefaultVersionResolver.class);
        locator.addService(ArtifactDescriptorReader.class, DefaultArtifactDescriptorReader.class);
        locator.addService(VersionRangeResolver.class, DefaultVersionRangeResolver.class);
        locator.addService(MetadataResolver.class, DefaultMetadataResolver.class);
        locator.addService(ArtifactDescriptorReader.class, DefaultArtifactDescriptorReader.class);
        locator.addService(DependencyCollector.class, DefaultDependencyCollector.class);
        locator.addService(Installer.class, DefaultInstaller.class);
        locator.addService(Deployer.class, DefaultDeployer.class);
        locator.addService(SyncContextFactory.class, DefaultSyncContextFactory.class);
View Full Code Here

Examples of org.switchyard.config.model.composite.ComponentModel.addService()

            InterfaceModel csiModel = new V1InterfaceModel(InterfaceModel.JAVA);
            Class<?> serviceInterface = routeClass.getAnnotation(Route.class).value();
            serviceModel.setName(getServiceName(routeClass));
            csiModel.setInterface(serviceInterface.getName());
            serviceModel.setInterface(csiModel);
            componentModel.addService(serviceModel);

            // Component reference definition(s)
            // Need to add these!
        }
View Full Code Here

Examples of org.switchyard.config.model.composite.v1.V1ComponentModel.addService()

               
                serviceModel.setName(name);
                serviceModel.setInterface(csiModel);
                csiModel.setInterface(iface.getName());
               
                componentModel.addService(serviceModel);
            }
           
            // Check to see if a policy requirements have been defined
            Requires requires = serviceClass.getAnnotation(Requires.class);
            if (requires != null) {
View Full Code Here

Examples of org.wso2.carbon.bam.common.clients.BAMConfigurationDSClient.addService()

      public void addService(ServiceDO serviceDO) throws BAMException {

          BAMConfigurationDSClient client = null;
          try {
              client = BAMUtil.getBAMConfigurationDSClient();
              client.addService(serviceDO);
          } catch (BAMException e) {
              throw e;
          } finally {
              if (client != null) {
                  client.cleanup();
View Full Code Here

Examples of org.wso2.carbon.governance.api.services.ServiceManager.addService()

                                            newResource.setMediaType(org.wso2.carbon.registry.extensions.utils.CommonConstants.SERVICE_MEDIA_TYPE);
                                            Properties properties = new Properties(resource.getProperties());
                                            newResource.setProperties(properties);

                                            Service service = manager.newService(serviceElement);
                                            manager.addService(service);
                                            resourcePath = CommonUtil.computeServicePathWithVersion(resourcePath, parameterMap.get(currentResourcePath));
                                            changed = true;

                                        } else if (action.equals("Demote")) {
                                            return;
View Full Code Here

Examples of org.wso2.carbon.governance.services.ui.clients.AddServicesServiceClient.addService()

                    operation.setText(newServicePath);
                }
            }


            return serviceClient.addService(filledService.toString());
        } catch (Exception e) {
            String msg = "Failed to get service details. " + e.getMessage();
            log.error(msg, e);
            throw new UIException(msg, e);
        }
View Full Code Here

Examples of placeholder.website.WebsiteResult.addService()

          this.out.println(result.getWebsites().length + " found.");
 
          // look for services
          this.out.titledPrint("\tLooking for services...");
          for (String service: CheckServices.check(responseContent)) {
            result.addService(service);
          }
          this.out.println(result.getServices().length + " found.");
        }
        else if (redirectLocation != null) {
          try {
View Full Code Here

Examples of pyrasun.eio.services.EmberServiceController.addService()

     */
    public TransportServerChannel create(WireFormat wireFormat, URI bindAddress) throws JMSException {
        try {
            EmberServiceController controller = getController();
            ByteArrayServerService service = new ByteArrayServerService(getContext(), getAcceptPoolingStrategy(), getIoPoolingStrategy(), bindAddress.getHost(), bindAddress.getPort());
            controller.addService(service);

            EmberTransportServerChannel answer = new EmberTransportServerChannel(wireFormat, bindAddress, getContext(), controller);
            service.setListener(answer);
            return answer;
        }
View Full Code Here

Examples of trams.data.RouteSchedule.addService()

        Service theService = new Service();
        theService.addStop(new Stop("Rathaus Pankow", Calendar.getInstance()));
        theService.addStop(new Stop("Pankow Kirche", Calendar.getInstance()));
        theService.addStop(new Stop("S + U Pankow", Calendar.getInstance()));
        RouteSchedule theRouteSchedule = new RouteSchedule();
        theRouteSchedule.addService(theService);
        theRouteSchedule.setRouteNumber(routeNumber);
        theRouteSchedule.setScheduleNumber(scheduleNumber);
        theRouteSchedule.setDelayInMins(delayInMins);
        return theRouteSchedule;
        //session.save(theRouteSchedule);
View Full Code Here

Examples of xsul.xservo_soap_http.HttpBasedServices.addService()

            String cwsdlLoc = Thread.currentThread().getContextClassLoader().getResource("xregistry.wsdl").toString();
           
           
            XmlBeansBasedService xbeanBasedService = new XmlBeansBasedService("xregistry", cwsdlLoc,
                    xregistryXmlBeansWrapper);
            cmsvc = httpServices.addService(xbeanBasedService)
            .addHandler(new xsul.xhandler_context.ServerContextAccessHandler("service-context"));
           
            System.out.println("Server started on "+httpServices.getServer().getLocation());
        } catch (HttpServerException e) {
            throw new XregistryException(e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.