Class SharedClassLoaderFactory
java.lang.Object
org.wso2.carbon.webapp.mgt.loader.SharedClassLoaderFactory
The factory creates class loaders for each run time environment.
-
Method Summary
Modifier and TypeMethodDescriptiongetEnvironmentClassLoader(String environmentName) Get the shared class loader loader for a specific environment.static SharedClassLoaderFactoryGet the instance of the SharedClassLoaderFactory.Get the shared class loader for the complete deployment.voidinit(ClassloadingConfiguration classloadingConfig) Initialize the shared class loader and environment class loaders for each defined environments in the first webapp deployment.
-
Method Details
-
getInstance
Get the instance of the SharedClassLoaderFactory.- Returns:
- SharedClassLoaderFactory
-
init
Initialize the shared class loader and environment class loaders for each defined environments in the first webapp deployment.- Parameters:
classloadingConfig- Class loading configuration.
-
getEnvironmentClassLoader
Get the shared class loader loader for a specific environment.- Parameters:
environmentName- Environment Name.- Returns:
- URLClassLoader.
-