Package org.jbpm.configuration

Examples of org.jbpm.configuration.ObjectFactory


  }

  static Map[] getConverterMaps() {
    Map[] converterMaps = null;
    synchronized(converterMapsMap) {
      ObjectFactory objectFactory = JbpmConfiguration.Configs.getObjectFactory();
      converterMaps = (Map[]) converterMapsMap.get(objectFactory);
      if (converterMaps==null) {
        converterMaps = createConverterMaps(objectFactory);
        converterMapsMap.put(objectFactory, converterMaps);
      }
View Full Code Here


         
          try {
            log.info("using jbpm configuration resource '"+resource+"'");
            InputStream jbpmCfgXmlStream = ClassLoaderUtil.getStream(resource);

            ObjectFactory objectFactory = parseObjectFactory(jbpmCfgXmlStream);
            instance = createJbpmConfiguration(objectFactory);
           
          } catch (RuntimeException e) {
            throw new JbpmException("couldn't parse jbpm configuration from resource '"+resource+"'", e);
          }
View Full Code Here

    log.debug("creating jbpm configuration from xml string");
    InputStream inputStream = null;
    if (xml!=null) {
      inputStream = new ByteArrayInputStream(xml.getBytes());
    }
    ObjectFactory objectFactory = parseObjectFactory(inputStream);
    return createJbpmConfiguration(objectFactory);
  }
View Full Code Here

    return jbpmConfiguration;
  }

  public static JbpmConfiguration parseInputStream(InputStream inputStream) {
    ObjectFactory objectFactory = parseObjectFactory(inputStream);
    log.debug("creating jbpm configuration from input stream");
    return createJbpmConfiguration(objectFactory);
  }
View Full Code Here

    InputStream inputStream = null;
    log.debug("creating jbpm configuration from resource '"+resource+"'");
    if (resource!=null) {
      inputStream = ClassLoaderUtil.getStream(resource);
    }
    ObjectFactory objectFactory = parseObjectFactory(inputStream);
    return createJbpmConfiguration(objectFactory);
  }
View Full Code Here

  /**
   * gives the jbpm domain model access to configuration information via the current JbpmContext.
   */
  public abstract static class Configs {
    public static ObjectFactory getObjectFactory() {
      ObjectFactory objectFactory = null;
      JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext();
      if (jbpmContext!=null) {
        objectFactory = jbpmContext.objectFactory;
      } else {
        objectFactory = getInstance().objectFactory;
View Full Code Here

    }
    public static void setDefaultObjectFactory(ObjectFactory objectFactory){
      defaultObjectFactory = objectFactory;
    }
    public static boolean hasObject(String name) {
      ObjectFactory objectFactory = getObjectFactory();
      return objectFactory.hasObject(name);
    }
View Full Code Here

    public static boolean hasObject(String name) {
      ObjectFactory objectFactory = getObjectFactory();
      return objectFactory.hasObject(name);
    }
    public static synchronized Object getObject(String name) {
      ObjectFactory objectFactory = getObjectFactory();
      return objectFactory.createObject(name);
    }
View Full Code Here

  }

  static Map[] getConverterMaps() {
    Map[] converterMaps = null;
    synchronized(converterMapsMap) {
      ObjectFactory objectFactory = JbpmConfiguration.Configs.getObjectFactory();
      converterMaps = (Map[]) converterMapsMap.get(objectFactory);
      if (converterMaps==null) {
        converterMaps = createConverterMaps(objectFactory);
        converterMapsMap.put(objectFactory, converterMaps);
      }
View Full Code Here

  }

  public static List getJbpmTypes() {
    List jbpmTypes = null;
    synchronized(jbpmTypesCache) {
      ObjectFactory objectFactory = JbpmConfiguration.Configs.getObjectFactory();
      jbpmTypes = (List) jbpmTypesCache.get(objectFactory);
      if (jbpmTypes==null) {
        if (JbpmConfiguration.Configs.hasObject("jbpm.types")) {
          jbpmTypes = (List) JbpmConfiguration.Configs.getObject("jbpm.types");
        } else {
View Full Code Here

TOP

Related Classes of org.jbpm.configuration.ObjectFactory

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.