Examples of findServices()


Examples of org.huihoo.willow.Server.findServices()

    if (provider_url != null && provider_url.length() > 0)
    {
      engine_name = parseEngineName(provider_url);
    }
    Server server = ServerFactory.getServer();
    Service[] services = server.findServices();
    if (engine_name == null)
    {
      if (services.length > 0)
      {
        willow_engine = services[0].getEngine();
View Full Code Here

Examples of org.qi4j.api.structure.Module.findServices()

    ServiceReference locateService( Application anApplication )
    {
        if( layerName != null )
        {
            Module module = anApplication.findModule( layerName, moduleName );
            Iterable<ServiceReference<Object>> serviceRefs = module.findServices( serviceType );
            for( ServiceReference<Object> serviceRef : serviceRefs )
            {
                if( serviceId.equals( serviceRef.identity() ) )
                {
                    return serviceRef;
View Full Code Here

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

                GovernanceArtifactFilter filter = new GovernanceArtifactFilter(referenceService);
                public boolean matches(Service service) throws GovernanceException {
                    return filter.matches(service);
                }
            };
            Service[] services = serviceManger.findServices(listServiceFilter);

            List<String> servicePaths = new ArrayList<String>();
            if (services != null) {
                for (Service service: services) {
                    servicePaths.add(service.getPath());
View Full Code Here

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

        Parameter parameter = axisConfig.getParameter(DiscoveryConstants.SKIP_INACTIVE_SERVICES);
        if (parameter != null && "true".equals(parameter.getValue())) {
            filter.setSkipInactiveServices(true);
        }

        Service[] services = serviceManager.findServices(filter);
        if (services != null && services.length > 0) {
            TargetService[] targetServices = new TargetService[services.length];
            for (int i = 0; i < services.length; i++) {
                targetServices[i] = getTargetService(services[i]);
            }
View Full Code Here

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

        Service service4 =  serviceManager.newService(new QName("http://baps.dadan.mug/jug", "doon"));
        service4.addAttribute("not-custom-attribute", "custom-value3");
        serviceManager.addService(service4);

        Service[] services = serviceManager.findServices(new ServiceFilter() {
            public boolean matches(Service service) throws GovernanceException {
                String attributeVal = service.getAttribute("custom-attribute");
                if (attributeVal != null && attributeVal.startsWith("custom-value")) {
                    return true;
                }
View Full Code Here

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

        newService = serviceManager.getService(service2.getId());
        assertEquals(service2.getAttribute("custom-attribute"), "custom-value2");


        // do the test again
        services = serviceManager.findServices(new ServiceFilter() {
            public boolean matches(Service service) throws GovernanceException {
                String attributeVal = service.getAttribute("custom-attribute");
                if (attributeVal != null && attributeVal.startsWith("custom-value")) {
                    return true;
                }
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.