Package org.apache.webbeans.corespi.se
Class DefaultApplicationBoundaryService
- java.lang.Object
-
- org.apache.webbeans.corespi.se.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 theapplicationClassLoaderthen theapplicationClassLoaderitself will get used to prevent mem leaks.
-
-
Constructor Summary
Constructors Constructor Description DefaultApplicationBoundaryService()Contructs a newDefaultApplicationBoundaryService
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ClassLoadergetApplicationClassLoader()ClassLoadergetBoundaryClassLoader(Class classToProxy)protected voidinit()Initialise the instance.protected booleanisOutsideOfApplicationClassLoader(ClassLoader classToProxyClassLoader)
-
-
-
Constructor Detail
-
DefaultApplicationBoundaryService
public DefaultApplicationBoundaryService()
Contructs a newDefaultApplicationBoundaryService
-
-
Method Detail
-
init
protected void init()
Initialise the instance.
-
getApplicationClassLoader
public ClassLoader getApplicationClassLoader()
- Specified by:
getApplicationClassLoaderin interfaceorg.apache.webbeans.spi.ApplicationBoundaryService
-
getBoundaryClassLoader
public ClassLoader getBoundaryClassLoader(Class classToProxy)
- Specified by:
getBoundaryClassLoaderin interfaceorg.apache.webbeans.spi.ApplicationBoundaryService
-
isOutsideOfApplicationClassLoader
protected boolean isOutsideOfApplicationClassLoader(ClassLoader classToProxyClassLoader)
- Parameters:
classToProxyClassLoader-- Returns:
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-