Package org.universa.tcc.gemda.facade

Examples of org.universa.tcc.gemda.facade.FacadeException


  @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);
    }
    return service;
View Full Code Here


 

  @SuppressWarnings("unchecked")
  protected <T extends Pojo<? extends Serializable>> Service<T> getService(T object) {
    if (object == null) {
      throw new FacadeException("N�o � possivel encontrar o servi�o para uma refer�ncia de objeto vazia");
    }
    Class<T> objectClass = (Class<T>) object.getClass();
    return getService(objectClass);
  }
View Full Code Here

TOP

Related Classes of org.universa.tcc.gemda.facade.FacadeException

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.