Examples of ServiceLocator


Examples of com.dragome.services.ServiceLocator

        ScriptHelper.eval("stopEvent(event)", this);
        int code= ScriptHelper.evalInt("event.keyCode", this);
        arguments= code;
      }

      ServiceLocator instance= ServiceLocator.getInstance();
      EventDispatcher eventDispatcher= instance.getEventDispatcher();
      eventDispatcher.eventPerformedById(eventType, id, arguments);
    }
    catch (Exception e)
    {
      e.printStackTrace();
View Full Code Here

Examples of com.google.gwt.requestfactory.shared.ServiceLocator

  @Override
  public Object createServiceInstance(Method contextMethod, Method domainMethod) {
    Class<? extends ServiceLocator> locatorType = getTop().resolveServiceLocator(
        contextMethod, domainMethod);
    ServiceLocator locator = newInstance(locatorType, ServiceLocator.class);
    return locator.getInstance(domainMethod.getDeclaringClass());
  }
View Full Code Here

Examples of com.google.web.bindery.requestfactory.shared.ServiceLocator

  @Override
  public Object createServiceInstance(Method contextMethod, Method domainMethod) {
    Class<? extends ServiceLocator> locatorType = getTop().resolveServiceLocator(
        contextMethod, domainMethod);
    ServiceLocator locator = getTop().createServiceLocator(locatorType);
    // Enclosing class may be a parent class, so invoke on service class
    Class<?> declaringClass = contextMethod.getDeclaringClass();
    Class<?> serviceClass = getTop().resolveServiceClass(
        declaringClass.asSubclass(RequestContext.class));
    return locator.getInstance(serviceClass);
  }
View Full Code Here

Examples of com.salesforce.ide.core.services.ServiceLocator

    private ProjectService projectService = null;
    private ComponentFactory componentFactory = null;

    public ResourceTester() throws ForceProjectException {
        super();
        ServiceLocator serviceLocator = ContainerDelegate.getInstance().getServiceLocator();
        projectService = serviceLocator.getProjectService();
        componentFactory = ContainerDelegate.getInstance().getFactoryLocator().getComponentFactory();
    }
View Full Code Here

Examples of liquibase.servicelocator.ServiceLocator

  @Test
  public void replacesServiceLocator() throws Exception {
    SpringApplication application = new SpringApplication(Conf.class);
    application.setWebEnvironment(false);
    application.run();
    ServiceLocator instance = ServiceLocator.getInstance();
    Field field = ReflectionUtils.findField(ServiceLocator.class, "classResolver");
    field.setAccessible(true);
    Object resolver = field.get(instance);
    assertThat(resolver, instanceOf(SpringPackageScanClassResolver.class));
  }
View Full Code Here

Examples of org.andromda.timetracker.ServiceLocator

    @Configuration(beforeSuite=true)
    public void initializeTestSuite() {

        // Initialize ServiceLocator
        logger.info("Initializing ServiceLocator");
        ServiceLocator locator = ServiceLocator.instance();
        locator.init("testBeanRefFactory.xml", "beanRefFactory");

        // Initialize UserService
        logger.info("Initializing UserService");
        userService = locator.getUserService();
    }
View Full Code Here

Examples of org.andromda.timetracker.ServiceLocator

    @Configuration(beforeSuite=true)
    public void initializeTestSuite() {

        // Initialize ServiceLocator
        logger.info("Initializing ServiceLocator");
        ServiceLocator locator = ServiceLocator.instance();
        locator.init("testBeanRefFactory.xml", "beanRefFactory");

        // Initialize TimeTrackingService
        logger.info("Initializing TimeTrackingService");
        timeTrackingService = locator.getTimeTrackingService();
    }
View Full Code Here

Examples of org.apache.juddi.v3.client.mapping.ServiceLocator

         * @throws ConfigurationException
         */
        public synchronized ServiceLocator getServiceLocator(String clerkName) throws ConfigurationException {
                UDDIClerk clerk = getClerk(clerkName);
                if (!serviceLocators.containsKey(clerk.getName())) {
                        ServiceLocator serviceLocator = new ServiceLocator(clerk, new URLLocalizerDefaultImpl(), properties);
                        serviceLocators.put(clerk.getName(), serviceLocator);
                }
                return serviceLocators.get(clerk.getName());
        }
View Full Code Here

Examples of org.apache.nutch.webapp.common.ServiceLocator

 
  static Ontology ontology;
 
  public void nutchPerform(ComponentContext tileContext, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws ServletException, IOException {

    ServiceLocator locator=getServiceLocator(request);

    if (ontology != null) {
      LOG.info("Calling ontology with parameter:" + locator.getSearch().getQueryString());
      request.setAttribute(ATTR_NAME, ontology.subclasses(locator.getSearch().getQueryString()));
    }
  }
View Full Code Here

Examples of org.apache.nutch.webapp.common.ServiceLocator

      request.setAttribute(REQ_ATTR_CLUSTERS, clusterResult);
    }
  }

  public void start(ServletContext servletContext) {
    ServiceLocator locator = getServiceLocator(servletContext);
    try {
      clusterer = new OnlineClustererFactory(locator.getConfiguration())
          .getOnlineClusterer();
    } catch (PluginRuntimeException e) {
      LOG.info("Could not initialize Clusterer, is the plugin enabled?");
      return;
    }
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.