Class DefaultApplicationBoundaryService

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.apache.webbeans.spi.ApplicationBoundaryService

    public class DefaultApplicationBoundaryService
    extends Object
    implements org.apache.webbeans.spi.ApplicationBoundaryService, Closeable
    Really simple default impl of the ApplicationBoundaryService. Assumes that there is a pretty easy ClassLoader structure in place. If a proxy should get created for a class further outside of the applicationClassLoader then the applicationClassLoader itself will get used to prevent mem leaks.
    • Method Detail

      • init

        protected void init()
        Initialise the instance.
      • getApplicationClassLoader

        public ClassLoader getApplicationClassLoader()
        Specified by:
        getApplicationClassLoader in interface org.apache.webbeans.spi.ApplicationBoundaryService
      • getBoundaryClassLoader

        public ClassLoader getBoundaryClassLoader​(Class classToProxy)
        Specified by:
        getBoundaryClassLoader in interface org.apache.webbeans.spi.ApplicationBoundaryService
      • isOutsideOfApplicationClassLoader

        protected boolean isOutsideOfApplicationClassLoader​(ClassLoader classToProxyClassLoader)
        Parameters:
        classToProxyClassLoader -
        Returns: