Examples of existeService()


Examples of org.universa.tcc.gemda.context.ConfigLocators.existeService()

 
  @SuppressWarnings("unchecked")
  protected <T extends Pojo<? extends Serializable>> Service<T> getService(Class<T> objectClass) {
    Service<T> service = null;
    ConfigLocators configLocators = SpringContext.getConfigLocators();
    if (!configLocators.existeService(objectClass)) {
      throw new FacadeException("N�o foi encontrado nenhum servi�o para a classe [" + objectClass.getCanonicalName() + "]");
    } else {
      String serviceId = configLocators.getServiceId(objectClass);
      service = (Service<T>) getApplicationContext().getBean(serviceId);
    }
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.