Interface ClassLoaderReporter


  • public interface ClassLoaderReporter
    Allows a bean to report the classloader that is appropriate for it and will be used for dispatching into this beans environment, this is only needed in advanced cases and should not normally be implemented
    The primary use case here is to allow someone to set their classloader when they are using a proxied bean or the implementation class is in the wrong classloader
    This is primarily used in the case of the HttpServletAccessProvider or EntityViewAccessProvider and the implementations of those should also implement this interface to be able to specify the classloader
    Author:
    Aaron Zeckoski (aaron@caret.cam.ac.uk)
    • Method Detail

      • getSuitableClassLoader

        ClassLoader getSuitableClassLoader()
        Returns:
        the classloader that is appropriate for executing methods against this bean