org.jbpm.api
Class Configuration

java.lang.Object
  extended by org.jbpm.api.Configuration

public class Configuration
extends java.lang.Object

process engine configuration.

Author:
Tom Baeyens

Constructor Summary
  Configuration()
          default constructor
protected Configuration(java.lang.Object o)
           
 
Method Summary
 ProcessEngine buildProcessEngine()
          after specifying the configuration resources with the other methods, a process engine can be created.
protected  java.lang.ClassLoader getClassLoader()
           
static ProcessEngine getProcessEngine()
          get the singleton ProcessEngine that is created from the default configuration file 'jbpm.cfg.xml'.
protected  Configuration instantiate(java.lang.String className)
           
 Configuration setFile(java.io.File file)
          provide a File as the configuration file
 Configuration setHibernateSessionFactory(java.lang.Object hibernateSessionFactory)
          provides the hibernate session factory programmatically.
 Configuration setInputSource(org.xml.sax.InputSource inputSource)
          provide a sax input source as the configuration resource
 Configuration setInputStream(java.io.InputStream inputStream)
          provide an input stream as the configuration resource
 Configuration setResource(java.lang.String resource)
          provide an classpath resource as the configuration file
 Configuration setUrl(java.net.URL url)
          point with a url to the configuration file
 Configuration setXmlString(java.lang.String xmlString)
          provide an xml string as the configuration resource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configuration

public Configuration()
default constructor


Configuration

protected Configuration(java.lang.Object o)
Method Detail

instantiate

protected Configuration instantiate(java.lang.String className)

getClassLoader

protected java.lang.ClassLoader getClassLoader()

setXmlString

public Configuration setXmlString(java.lang.String xmlString)
provide an xml string as the configuration resource


setResource

public Configuration setResource(java.lang.String resource)
provide an classpath resource as the configuration file


setInputStream

public Configuration setInputStream(java.io.InputStream inputStream)
provide an input stream as the configuration resource


setInputSource

public Configuration setInputSource(org.xml.sax.InputSource inputSource)
provide a sax input source as the configuration resource


setUrl

public Configuration setUrl(java.net.URL url)
point with a url to the configuration file


setFile

public Configuration setFile(java.io.File file)
provide a File as the configuration file


buildProcessEngine

public ProcessEngine buildProcessEngine()
after specifying the configuration resources with the other methods, a process engine can be created.


setHibernateSessionFactory

public Configuration setHibernateSessionFactory(java.lang.Object hibernateSessionFactory)
provides the hibernate session factory programmatically. The hibernateSessionFactory parameter is of type Object to prevent a dependency of the API on hibernate directly.


getProcessEngine

public static ProcessEngine getProcessEngine()
get the singleton ProcessEngine that is created from the default configuration file 'jbpm.cfg.xml'.



Copyright © 2010 JBoss Community. All Rights Reserved.