Examples of findServices()


Examples of com.dubture.symfony.core.model.SymfonyModelAccess.findServices()

        ServiceContainerContext context = (ServiceContainerContext) getContext();
        IScriptProject project = context.getSourceModule().getScriptProject();

        SymfonyModelAccess model= SymfonyModelAccess.getDefault();
        List<Service> services = model.findServices(project.getPath());
        SourceRange range = getReplacementRange(context);

        String prefix = context.getPrefix();

        if (services == null) {
View Full Code Here

Examples of com.ibm.commons.runtime.Application.findServices()

     */
    public static MimeEmailFactory getInstance() {
      if(instance == null) {
            Application app = Application.getUnchecked();
            if (app != null) {
                List<Object> factories = app.findServices(EXTENSION_ID);
                for(Object o : factories) {
                    if(o instanceof MimeEmailFactory) {
                        instance = (MimeEmailFactory)o;
                    }
                }
View Full Code Here

Examples of com.ibm.commons.runtime.Application.findServices()

   * @return the corresponding environment, or null if not found
   */
  public static SBTEnvironment get(String name) {
    Application app = Application.getUnchecked();
    if (app != null) {
      List<Object> factories = app.findServices(ENVIRONMENT_FACTORY);
      for(int i=0; i<factories.size(); i++) {
        SBTEnvironmentFactory factory = (SBTEnvironmentFactory)factories.get(i);
        SBTEnvironment env = factory.getEnvironment(name);
        if(env!=null) {
          return env;
View Full Code Here

Examples of com.ibm.commons.runtime.Application.findServices()

    String[] pathTokens = pathinfo.split("/");   
    if (pathTokens.length > 4) {
      String serviceType = pathTokens[3];
      Application application = Application.get();
      // ProxyEndpointServiceProvider.PROXY_SERVICE_TYPE is the extension ID
      List<Object> proxyServiceProviders = application.findServices(ProxyEndpointServiceProvider.PROXY_SERVICE_TYPE);
      if(proxyServiceProviders != null && !proxyServiceProviders.isEmpty()){
        for(Object o : proxyServiceProviders){
          ProxyEndpointServiceProvider pvdr = (ProxyEndpointServiceProvider)o;
          proxyEndpointService = pvdr.createProxyEndpointService(serviceType);
          if(proxyEndpointService != null){
View Full Code Here

Examples of com.ibm.xsp.application.ApplicationEx.findServices()

        if (ret == null) {
          ret = AccessController.doPrivileged(new PrivilegedAction<List<T>>() {
            @Override
            public List<T> run() {
              return app.findServices(serviceClazz.getName());
            }
          });
          if (Comparable.class.isAssignableFrom(serviceClazz)) {
            Collections.sort((List<? extends Comparable>) ret);
          }
View Full Code Here

Examples of javax.xml.registry.BusinessQueryManager.findServices()

      Collection<String> findQualifiers = new ArrayList<String>();
      findQualifiers.add(FindQualifier.AND_ALL_KEYS);
      findQualifiers.add(FindQualifier.EXACT_NAME_MATCH);
      findQualifiers.add(FindQualifier.SORT_BY_NAME_DESC);
      logger.log(Level.DEBUG, "Going to query the registry for name pattern " + namePatterns);
      BulkResponse response = bqm.findServices(null, findQualifiers,
          namePatterns, classifications, specifications);
      if (response.getStatus()==JAXRResponse.STATUS_SUCCESS) {
        return response.getCollection();
      } else {
        throw new RegistryException();
View Full Code Here

Examples of javax.xml.registry.BusinessQueryManager.findServices()

      String name=classificationScheme.getName().getValue();
      logger.debug("Name=" + name);
      Collection<String> nameParams = new ArrayList<String>();
      //The name of the service is wild
      nameParams.add("%");
      BulkResponse bs = bqm.findServices(null, null,nameParams,classifications, null);
      int status = bs.getStatus();
      logger.debug("status=" + status);
    } catch (JAXRException je) {
      logger.error(je);
    }
View Full Code Here

Examples of javax.xml.registry.BusinessQueryManager.findServices()

      Collection<String> findQualifiers = new ArrayList<String>();
      findQualifiers.add(FindQualifier.AND_ALL_KEYS);
      findQualifiers.add(FindQualifier.EXACT_NAME_MATCH);
      findQualifiers.add(FindQualifier.SORT_BY_NAME_DESC);
      logger.log(Level.DEBUG, "Going to query the registry for name pattern " + namePatterns);
      BulkResponse response = bqm.findServices(null, findQualifiers,
          namePatterns, classifications, specifications);
      if (response.getStatus()==JAXRResponse.STATUS_SUCCESS) {
        if (response.getCollection().size() <= 1) {
          for (Iterator servIter = response.getCollection().iterator(); servIter.hasNext();)
          {
View Full Code Here

Examples of javax.xml.registry.BusinessQueryManager.findServices()

      findQualifiers.add(FindQualifier.SORT_BY_NAME_DESC);
      Collection<Classification> classifications = new ArrayList<Classification>();
            classifications.add(classification);
          //Find based upon qualifier type and values
      logger.log(Level.DEBUG, "Going to query the registry for classification " + classifications);
      BulkResponse response = bqm.findServices(null, findQualifiers,
          null, classifications, null);
      if (response.getStatus()==JAXRResponse.STATUS_SUCCESS) {
        services = (Collection<Service>) response.getCollection();
      }
      return services;
View Full Code Here

Examples of org.apache.catalina.Server.findServices()

        @Override
        public void start() throws LifecycleException {
            // Use fast, insecure session ID generation for all tests
            Server server = getServer();
            for (Service service : server.findServices()) {
                Container e = service.getContainer();
                for (Container h : e.findChildren()) {
                    for (Container c : h.findChildren()) {
                        Manager m = c.getManager();
                        if (m == null) {
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.