Examples of addService()


Examples of org.apache.maven.repository.internal.DefaultServiceLocator.addService()

         * org.sonatype.aether.spi.locator.Service to ease manual wiring and
         * using the prepopulated DefaultServiceLocator, we only need to
         * register the repository connector factories.
         */
        DefaultServiceLocator locator = new DefaultServiceLocator();
        locator.addService(RepositoryConnectorFactory.class, FileRepositoryConnectorFactory.class);
        locator.addService(RepositoryConnectorFactory.class, WagonRepositoryConnectorFactory.class);
        locator.setServices(WagonProvider.class, new ManualWagonProvider());

        return locator.getService(RepositorySystem.class);
    }
View Full Code Here

Examples of org.apache.maven.repository.internal.MavenServiceLocator.addService()

      final DefaultServiceLocator locator = new MavenServiceLocator();
      locator.setServices(ModelBuilder.class, new DefaultModelBuilderFactory().newInstance());
      // Installing Wagon to fetch from HTTP repositories
      locator.setServices(WagonProvider.class, new ManualWagonProvider());
      locator.addService(RepositoryConnectorFactory.class, WagonRepositoryConnectorFactory.class);
      final RepositorySystem repositorySystem = locator.getService(RepositorySystem.class);
      return repositorySystem;
   }

   public static org.sonatype.aether.repository.Proxy convertFromMavenProxy(org.apache.maven.settings.Proxy proxy)
View Full Code Here

Examples of org.apache.slider.providers.agent.application.metadata.Metainfo.addService()

    AgentProviderService mockAps = Mockito.spy(aps);
    doReturn(access).when(mockAps).getAmState();
    doReturn("scripts/hbase_master.py").when(mockAps).getScriptPathFromMetainfo(anyString());
    Metainfo metainfo = new Metainfo();
    metainfo.addService(new Service());
    doReturn(metainfo).when(mockAps).getApplicationMetainfo(any(SliderFileSystem.class), anyString());

    try {
      doReturn(true).when(mockAps).isMaster(anyString());
      doNothing().when(mockAps).addInstallCommand(
View Full Code Here

Examples of org.apache.stratos.manager.feature.dashbord.ui.beans.Data.addService()

      documentElement.build();
      Iterator<OMElement> txElements = documentElement.getChildrenWithName(new QName("service"));
   
      while (txElements.hasNext()) {
        OMElement txEle = txElements.next();
        data.addService(getService(txEle));
      }
      Service service = data.getService("manager");

//      Map<String, Story> stories = service.getStories();
//      System.out.println(stories.size());
View Full Code Here

Examples of org.apache.stratos.messaging.domain.topology.Topology.addService()

            } else {
             
              // Apply changes to the topology
              Service service = new Service(event.getServiceName(), event.getServiceType());
              service.addPorts(event.getPorts());
              topology.addService(service);
             
              if (log.isInfoEnabled()) {
                log.info(String.format("Service created: [service] %s", event.getServiceName()));
              }
            }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jsonrpc.ScaDomainScriptServlet.addService()

            scaDomainServlet = new ScaDomainScriptServlet();
            servletHost.addServletMapping(domainScriptMapping, scaDomainServlet);
        }

        // Add this service to the scadomain script servlet
        scaDomainServlet.addService(binding.getName());
    }

    public void stop() {

        // Remove the servlet mappings we've added
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.ServiceQueryReplyEvent.addService()

                ServiceSet sset = serviceStateHandler.getServiceByName(k);
                if ( k == null ) continue;                    // the unlikely event it changed out from under us
               
                IServiceDescription sd = sset.query();
                updateServiceQuery(sd, sset);
                reply.addService(sd);
            }
        } else {
            ServiceSet sset = serviceStateHandler.getServiceForApi(friendly, epname);
            if ( sset == null ) {
                reply.setMessage("Unknown");
View Full Code Here

Examples of org.apache.ws.scout.registry.infomodel.OrganizationImpl.addService()

    BusinessServices services = businessEntity.getBusinessServices();
    if(services != null)
    {
      List<BusinessService> bizServiceList = services.getBusinessService();
      for (BusinessService businessService : bizServiceList) {
        org.addService(getService(businessService, lifeCycleManager));
      }
    }

    /*
     *  Users
View Full Code Here

Examples of org.apache.wsdl.WSDLDescription.addService()

                "http://www.org.apache.axis2");
        womDescription.addBinding(binding);

        //generating service
        WSDLService service = generateService(wsdlComponentFactory, womDescription, binding, serviceName);
        womDescription.addService(service);
        return womDescription;
    }


    public WSDLInterface generatePortType(WSDLDescription womDescription,
View Full Code Here

Examples of org.araneaframework.framework.ThreadContext.addService()

   
    BeanFactory factory = (BeanFactory) getEnvironment().getEntry(BeanFactory.class);
    // TODO:: some better way in framework?
    Service service = (Service) factory.getBean("servletServiceAdapterComponent");
   
    currentThreadCtx.addService(id, service);
   
    if (startMessage != null)
      startMessage.send(null, service);
   
    //add new, not yet opened popup to popup and popup properties maps
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.