public class BootstrapClassLoaderFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_CP_CACHE |
static String |
PROP_DEPLOYMENT_CP |
static String |
PROP_OFFLINE |
static String |
PROP_WS_DISCOVERY |
| Modifier and Type | Method and Description |
|---|---|
BootstrapClassLoaderFactory |
addToClassPath(Path path) |
DefineClassVisibleURLClassLoader |
newAllInclusiveClassLoader(boolean hierarchical)
WARNING: this method is creating a classloader by resolving all the dependencies on every call,
without consulting the cache.
|
DefineClassVisibleURLClassLoader |
newDeploymentClassLoader() |
static BootstrapClassLoaderFactory |
newInstance() |
BootstrapClassLoaderFactory |
setAppClasses(Path appClasses) |
BootstrapClassLoaderFactory |
setEnableClasspathCache(boolean enable) |
BootstrapClassLoaderFactory |
setLocalProjectsDiscovery(boolean localProjectsDiscovery) |
BootstrapClassLoaderFactory |
setOffline(Boolean offline) |
BootstrapClassLoaderFactory |
setParent(ClassLoader parent) |
public static final String PROP_CP_CACHE
public static final String PROP_DEPLOYMENT_CP
public static final String PROP_OFFLINE
public static final String PROP_WS_DISCOVERY
public static BootstrapClassLoaderFactory newInstance()
public BootstrapClassLoaderFactory setParent(ClassLoader parent)
public BootstrapClassLoaderFactory setAppClasses(Path appClasses)
public BootstrapClassLoaderFactory addToClassPath(Path path)
public BootstrapClassLoaderFactory setLocalProjectsDiscovery(boolean localProjectsDiscovery)
public BootstrapClassLoaderFactory setOffline(Boolean offline)
public BootstrapClassLoaderFactory setEnableClasspathCache(boolean enable)
public DefineClassVisibleURLClassLoader newAllInclusiveClassLoader(boolean hierarchical) throws BootstrapException
hierarchical - whether the deployment classloader should use the classloader built using
the user-defined application dependencies as its parent or all the dependencies should be loaded
by the same classloaderBootstrapException - in case of a failurepublic DefineClassVisibleURLClassLoader newDeploymentClassLoader() throws BootstrapException
BootstrapExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.