org.jbpm.instantiation
Class SharedProcessClassLoaderFactory

java.lang.Object
  extended by org.jbpm.instantiation.SharedProcessClassLoaderFactory
All Implemented Interfaces:
Serializable, ProcessClassLoaderFactory

public class SharedProcessClassLoaderFactory
extends Object
implements ProcessClassLoaderFactory

Factory that keeps soft references to the class loaders it produces, in order to prevent duplicate class loaders from eating up the permanent generation space. The cache does not prevent the garbage collector from discarding the class loaders.

Author:
Alejandro Guizar
See Also:
Serialized Form

Constructor Summary
SharedProcessClassLoaderFactory()
           
 
Method Summary
 ClassLoader getProcessClassLoader(ProcessDefinition processDefinition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SharedProcessClassLoaderFactory

public SharedProcessClassLoaderFactory()
Method Detail

getProcessClassLoader

public ClassLoader getProcessClassLoader(ProcessDefinition processDefinition)
Specified by:
getProcessClassLoader in interface ProcessClassLoaderFactory


Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.