Package com.ibm.commons.runtime

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


   * @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

    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

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.