org.jbpm.instantiation.ProcessClassLoaderFactory Maven / Gradle / Ivy
The newest version!
package org.jbpm.instantiation;
import java.io.Serializable;
import org.jbpm.JbpmConfiguration;
import org.jbpm.graph.def.ProcessDefinition;
/**
*
* Factory to retrieve the Process {@link ClassLoader} which is then used to load delegation classes
* used by the process.
*
*
* Default is the build in {@link ProcessClassLoader}, which tries to load the classes from the jBPM
* database first.
*
*
* Can be configured by setting the property jbpm.process.class.loader
in the
* configuration file to the class name of the custom class loader.
*
*
* Implementations should be serializable, as the {@link JbpmConfiguration} that references them is.
*
*
* @author [email protected]
*/
public interface ProcessClassLoaderFactory extends Serializable {
public ClassLoader getProcessClassLoader(ProcessDefinition processDefinition);
}