Interface ApplicationBoundaryService


  • public interface ApplicationBoundaryService
    This service allows EE containers to define an 'outer boundary' for their applications. E.g. if the class EntityManager resides in a shared container lib folder then any CDI proxy for it should still at maximum use the Applications ClassLoader to load the proxy for it. This needs to be done to ensure that we don't create a class leak by loading the class with the container ClassLoader but are not able to throw this CL away.
    • Method Detail

      • getApplicationClassLoader

        ClassLoader getApplicationClassLoader()
        Please note that the ApplicationClassLoader always have to 'see' the internal OWB classes like BeanManagerImpl or the proxy marker interfaces (
        Returns:
        The 'outermost' ClassLoader of that Application
      • getBoundaryClassLoader

        ClassLoader getBoundaryClassLoader​(Class<?> classToProxy)
        Returns:
        the ClassLoader which shall get used to e.g. proxy that very class.