public class CatalogUtils
extends java.lang.Object
Constructor and Description |
---|
CatalogUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getCatalogItemIdFromLoader(BrooklynClassLoadingContext loader)
Scans the given
BrooklynClassLoadingContext to detect what catalog item id is in effect. |
static void |
installLibraries(ManagementContext managementContext,
CatalogItem.CatalogItemLibraries libraries)
Registers all bundles with the management context's OSGi framework.
|
static void |
logDebugOrTraceIfRebinding(org.slf4j.Logger log,
java.lang.String message,
java.lang.Object... args) |
static BrooklynClassLoadingContext |
newClassLoadingContext(ManagementContext mgmt,
CatalogItem<?,?> item) |
static BrooklynClassLoadingContext |
newClassLoadingContext(ManagementContext mgmt,
java.lang.String catalogItemId,
CatalogItem.CatalogItemLibraries libraries,
java.lang.ClassLoader classLoader) |
static void |
setCatalogItemIdOnAddition(Entity entity,
BrooklynObject itemBeingAdded) |
public static BrooklynClassLoadingContext newClassLoadingContext(ManagementContext mgmt, CatalogItem<?,?> item)
public static BrooklynClassLoadingContext newClassLoadingContext(@Nullable ManagementContext mgmt, java.lang.String catalogItemId, CatalogItem.CatalogItemLibraries libraries, java.lang.ClassLoader classLoader)
public static void installLibraries(ManagementContext managementContext, @Nullable CatalogItem.CatalogItemLibraries libraries)
public static java.lang.String getCatalogItemIdFromLoader(BrooklynClassLoadingContext loader)
BrooklynClassLoadingContext
to detect what catalog item id is in effect.public static void setCatalogItemIdOnAddition(Entity entity, BrooklynObject itemBeingAdded)
@Beta public static void logDebugOrTraceIfRebinding(org.slf4j.Logger log, java.lang.String message, java.lang.Object... args)