Package org.jbpm.context.exe

Examples of org.jbpm.context.exe.Converter


  static Map converterMapsMap = new HashMap();
 
  // public methods

  public static Converter getConverterByClassName(String className) {
    Converter converter = (Converter) getConvertersByClassNames().get(className);
    if (converter==null) {
      throw new JbpmException("converter '"+className+"' is not declared in jbpm.converter.properties");
    }
    return converter;
  }
View Full Code Here


      if (converterDatabaseId.length()!=1) throw new JbpmException("converter-ids must be of length 1 (to be stored in a char)");
      if (convertersByDatabaseId.containsKey(converterDatabaseId)) throw new JbpmException("duplicate converter id : '"+converterDatabaseId+"'");
      String converterClassName = converterProperties.getProperty(converterDatabaseId);
      try {
        Class converterClass = ClassLoaderUtil.loadClass(converterClassName);
        Converter converter = (Converter) converterClass.newInstance();
        log.debug("adding converter '"+converterDatabaseId+"', '"+converterClassName+"'");
        convertersByClassNames.put(converterClassName, converter);
        convertersByDatabaseId.put(converterDatabaseId, converter);
        convertersIds.put(converter, converterDatabaseId);
      } catch (Throwable t) {
View Full Code Here

  static Map converterMapsMap = new HashMap();
 
  // public methods

  public static Converter getConverterByClassName(String className) {
    Converter converter = (Converter) getConvertersByClassNames().get(className);
    if (converter==null) {
      throw new JbpmException("converter '"+className+"' is not declared in jbpm.converter.properties");
    }
    return converter;
  }
View Full Code Here

      if (converterDatabaseId.length()!=1) throw new JbpmException("converter-ids must be of length 1 (to be stored in a char)");
      if (convertersByDatabaseId.containsKey(converterDatabaseId)) throw new JbpmException("duplicate converter id : '"+converterDatabaseId+"'");
      String converterClassName = converterProperties.getProperty(converterDatabaseId);
      try {
        Class converterClass = ClassLoaderUtil.loadClass(converterClassName);
        Converter converter = (Converter) converterClass.newInstance();
        log.debug("adding converter '"+converterDatabaseId+"', '"+converterClassName+"'");
        convertersByClassNames.put(converterClassName, converter);
        convertersByDatabaseId.put(converterDatabaseId, converter);
        convertersIds.put(converter, converterDatabaseId);
      } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.jbpm.context.exe.Converter

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.