0 Replies Latest reply on Aug 16, 2007 6:50 AM by Adrian Dimulescu

    different ProcessClassLoader instance for each action delega

    Adrian Dimulescu Newbie


      I noticed that each ActionHandler is loaded by a different instance of ProcessClassLoader. Incidentally that means that static variables cannot be used, as static variables are classloader-scoped.

      The code responsible for this is in ClassLoaderUtil.java

      public static ClassLoader getProcessClassLoader(ProcessDefinition processDefinition) {
       return new ProcessClassLoader(ClassLoaderUtil.class.getClassLoader(), processDefinition);

      A new instance everytime, instead of a singleton...

      Is this behaviour by design ?