public class RebindContextImpl extends java.lang.Object implements RebindContext
Constructor and Description |
---|
RebindContextImpl(ManagementContext mgmt,
RebindExceptionHandler exceptionHandler,
java.lang.ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
void |
clearCatalogItems() |
java.util.Map<java.lang.String,BrooklynObject> |
getAllBrooklynObjects()
Returns an unmodifiable view of all objects by ID
|
CatalogItem<?,?> |
getCatalogItem(java.lang.String id) |
java.util.Collection<CatalogItem<?,?>> |
getCatalogItems() |
Enricher |
getEnricher(java.lang.String id) |
java.util.Collection<Enricher> |
getEnrichers() |
java.util.Collection<Entity> |
getEntities() |
Entity |
getEntity(java.lang.String id) |
RebindExceptionHandler |
getExceptionHandler() |
Feed |
getFeed(java.lang.String id) |
java.util.Collection<Feed> |
getFeeds() |
Location |
getLocation(java.lang.String id) |
java.util.Collection<Location> |
getLocations() |
java.util.Collection<Policy> |
getPolicies() |
Policy |
getPolicy(java.lang.String id) |
boolean |
isReadOnly(BrooklynObject item) |
java.lang.Class<?> |
loadClass(java.lang.String className) |
BrooklynMementoPersister.LookupContext |
lookup() |
void |
registerCatalogItem(java.lang.String id,
CatalogItem<?,?> catalogItem) |
void |
registerEnricher(java.lang.String id,
Enricher enricher) |
void |
registerEntity(java.lang.String id,
Entity entity) |
void |
registerFeed(java.lang.String id,
Feed feed) |
void |
registerLocation(java.lang.String id,
Location location) |
void |
registerPolicy(java.lang.String id,
Policy policy) |
void |
setAllReadOnly() |
void |
unregisterCatalogItem(CatalogItem<?,?> item) |
void |
unregisterEnricher(Enricher enricher) |
void |
unregisterFeed(Feed feed) |
void |
unregisterPolicy(Policy policy) |
public RebindContextImpl(ManagementContext mgmt, RebindExceptionHandler exceptionHandler, java.lang.ClassLoader classLoader)
public void registerEntity(java.lang.String id, Entity entity)
public void registerLocation(java.lang.String id, Location location)
public void registerPolicy(java.lang.String id, Policy policy)
public void registerEnricher(java.lang.String id, Enricher enricher)
public void registerFeed(java.lang.String id, Feed feed)
public void registerCatalogItem(java.lang.String id, CatalogItem<?,?> catalogItem)
public void unregisterPolicy(Policy policy)
public void unregisterEnricher(Enricher enricher)
public void unregisterFeed(Feed feed)
public void unregisterCatalogItem(CatalogItem<?,?> item)
public void clearCatalogItems()
public Entity getEntity(java.lang.String id)
public Location getLocation(java.lang.String id)
public Policy getPolicy(java.lang.String id)
public Enricher getEnricher(java.lang.String id)
public CatalogItem<?,?> getCatalogItem(java.lang.String id)
public Feed getFeed(java.lang.String id)
public java.lang.Class<?> loadClass(java.lang.String className) throws java.lang.ClassNotFoundException
loadClass
in interface RebindContext
java.lang.ClassNotFoundException
public RebindExceptionHandler getExceptionHandler()
getExceptionHandler
in interface RebindContext
public java.util.Collection<Location> getLocations()
public java.util.Collection<Entity> getEntities()
public java.util.Collection<Policy> getPolicies()
public java.util.Collection<Enricher> getEnrichers()
public java.util.Collection<Feed> getFeeds()
public java.util.Collection<CatalogItem<?,?>> getCatalogItems()
public java.util.Map<java.lang.String,BrooklynObject> getAllBrooklynObjects()
RebindContext
getAllBrooklynObjects
in interface RebindContext
public void setAllReadOnly()
public boolean isReadOnly(BrooklynObject item)
isReadOnly
in interface RebindContext
public BrooklynMementoPersister.LookupContext lookup()
lookup
in interface RebindContext