Package com.google.gwt.requestfactory.shared

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


  @Override
  public Object createServiceInstance(Method contextMethod, Method domainMethod) {
    Class<? extends ServiceLocator> locatorType =
        getTop().resolveServiceLocator(contextMethod, domainMethod);
    ServiceLocator locator = newInstance(locatorType, ServiceLocator.class);
    // 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

TOP

Related Classes of com.google.gwt.requestfactory.shared.ServiceLocator

Copyright © 2018 www.massapicom. 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.