public class CatalogDo
extends java.lang.Object
Constructor and Description |
---|
CatalogDo(ManagementContext mgmt,
CatalogDto dto) |
Modifier and Type | Method and Description |
---|---|
void |
addEntry(CatalogItemDtoAbstract<?,?> entry)
Adds the given entry to the catalog, with no enrichment.
|
void |
addToClasspath(java.lang.String... urls) |
boolean |
blockIfNotLoaded(Duration timeout) |
void |
deleteEntry(CatalogItemDtoAbstract<?,?> entry)
Removes the given entry from the catalog.
|
java.lang.ClassLoader |
getLocalClassLoader()
classloader for only the entries in this catalog's classpath
|
java.lang.ClassLoader |
getRecursiveClassLoader()
recursive classloader is the local classloader plus all children catalog's classloader
|
java.lang.ClassLoader |
getRootClassLoader()
the root classloader is the recursive CL from the outermost catalog
(which includes the base classloader from the mgmt context, if set)
|
boolean |
isLocal()
is "local" if it and all ancestors are not based on any remote urls
|
CatalogDo |
load()
Calls
load(CatalogDo) with a null parent. |
CatalogDo |
load(CatalogDo parent)
Calls
load(ManagementContext, CatalogDo) with the catalog's existing management context. |
CatalogDo |
load(ManagementContext mgmt,
CatalogDo parent)
causes all URL-based catalogs to have their manifests loaded,
and all scanning-based classpaths to scan the classpaths
(but does not load all JARs)
|
void |
setClasspathScanForEntities(CatalogClasspathDo.CatalogScanningModes value) |
java.lang.String |
toString() |
public CatalogDo(ManagementContext mgmt, CatalogDto dto)
public CatalogDo load()
load(CatalogDo)
with a null parent.public CatalogDo load(CatalogDo parent)
load(ManagementContext, CatalogDo)
with the catalog's existing management context.public CatalogDo load(ManagementContext mgmt, CatalogDo parent)
public boolean blockIfNotLoaded(Duration timeout) throws java.lang.InterruptedException
java.lang.InterruptedException
public void addEntry(CatalogItemDtoAbstract<?,?> entry)
CatalogClasspathDo.addCatalogEntry(CatalogItemDtoAbstract, Class)
public void deleteEntry(CatalogItemDtoAbstract<?,?> entry)
public void addToClasspath(java.lang.String... urls)
public void setClasspathScanForEntities(CatalogClasspathDo.CatalogScanningModes value)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isLocal()
public java.lang.ClassLoader getLocalClassLoader()
public java.lang.ClassLoader getRecursiveClassLoader()
public java.lang.ClassLoader getRootClassLoader()