Package it.eng.spagobi.tools.scheduler.utils

Examples of it.eng.spagobi.tools.scheduler.utils.JavaClassDestination


     
        String sendToJavaClass = (String)request.getAttribute("sendtojavaclass_"+biobId+"__"+index)
        if(sendToJavaClass!=null) {
          sInfo.setSendToJavaClass(true);
          String javaClassPath = (String)request.getAttribute("javaclasspath_"+biobId+"__"+index)
          JavaClassDestination tryClass=null;
          try{
          tryClass=(JavaClassDestination)Class.forName(javaClassPath).newInstance();
          }
          catch (ClassCastException e) {
            logger.error("Error in istantiating class");
View Full Code Here


    if( (javaClass==null) || javaClass.trim().equals("")) {
      logger.error("Classe java nons specificata");
      return;
    }
    // try to get new Instance
    JavaClassDestination jcDest=null;
    try{
      jcDest=(JavaClassDestination)Class.forName(javaClass).newInstance();
    }
    catch (ClassCastException e) {
      logger.error("Class "+javaClass+" does not extend JavaClassDestination class as expected");
      return;
    }
    catch (Exception e) {
      logger.error("Error while instantiating the class "+javaClass);
      return;
      }

    logger.debug("Sucessfull instantiation of "+javaClass);

    jcDest.setBiObj(biobj);
    jcDest.setDocumentByte(response);

    try{
      jcDest.execute();
    }
    catch (Exception e) {
      logger.error("Error during execution",e);
      return;
    }
View Full Code Here

TOP

Related Classes of it.eng.spagobi.tools.scheduler.utils.JavaClassDestination

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.