public interface EntityManager
| Modifier and Type | Method and Description | 
|---|---|
| <T extends Enricher>  | createEnricher(EnricherSpec<T> spec)Creates a new enricher (not managed; not associated with any entity). | 
| <T extends Entity>  | createEntity(EntitySpec<T> spec)Creates a new (unmanaged) entity. | 
| <T extends Entity>  | createEntity(java.util.Map<?,?> config,
            java.lang.Class<T> type)Convenience (particularly for groovy code) to create an entity. | 
| <T extends Policy>  | createPolicy(PolicySpec<T> spec)Creates a new policy (not managed; not associated with any entity). | 
| java.util.Collection<Entity> | findEntities(com.google.common.base.Predicate<? super Entity> filter)All entities under control of this management plane that match the given filter | 
| java.util.Collection<Entity> | findEntitiesInApplication(Application application,
                         com.google.common.base.Predicate<? super Entity> filter)All entities managed as part of the given application that match the given filter | 
| java.util.Collection<Entity> | getEntities()All entities under control of this management plane | 
| java.util.Collection<Entity> | getEntitiesInApplication(Application application)All entities managed as part of the given application | 
| Entity | getEntity(java.lang.String id)Returns the entity with the given identifier (may be a full instance, or a proxy to one which is remote),
 or null. | 
| EntityTypeRegistry | getEntityTypeRegistry()Returns the type registry, used to identify the entity implementation when instantiating an
 entity of a given type. | 
| boolean | isManaged(Entity entity)whether the entity is under management by this management context | 
| void | manage(Entity e)Begins management for the given entity and its children, recursively. | 
| void | unmanage(Entity e)Causes the given entity and its children, recursively, to be removed from the management plane
 (for instance because the entity is no longer relevant) | 
EntityTypeRegistry getEntityTypeRegistry()
EntityManager.createEntity(EntitySpec)<T extends Entity> T createEntity(EntitySpec<T> spec)
spec - <T extends Entity> T createEntity(java.util.Map<?,?> config, java.lang.Class<T> type)
createEntity(EntitySpec.create(type).configure(config))createEntity(EntitySpec)<T extends Policy> T createPolicy(PolicySpec<T> spec)
spec - <T extends Enricher> T createEnricher(EnricherSpec<T> spec)
spec - java.util.Collection<Entity> getEntities()
java.util.Collection<Entity> getEntitiesInApplication(Application application)
java.util.Collection<Entity> findEntities(com.google.common.base.Predicate<? super Entity> filter)
java.util.Collection<Entity> findEntitiesInApplication(Application application, com.google.common.base.Predicate<? super Entity> filter)
@Nullable Entity getEntity(java.lang.String id)
boolean isManaged(Entity entity)
void manage(Entity e)
void unmanage(Entity e)