|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EntityManager
For managing and querying entities.
| Method Summary | ||
|---|---|---|
|
createEntity(EntitySpec<T> spec)
Creates a new (unmanaged) entity. |
|
|
createEntity(Map<?,?> config,
Class<T> type)
Convenience (particularly for groovy code) to create an entity. |
|
Collection<Entity> |
getEntities()
All entities under control of this management plane |
|
Iterable<Entity> |
getEntitiesInApplication(Application application)
All entities managed as part of the given application |
|
Entity |
getEntity(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) |
|
| Method Detail |
|---|
EntityTypeRegistry getEntityTypeRegistry()
EntityManager.createEntity(EntitySpec)<T extends Entity> T createEntity(EntitySpec<T> spec)
spec -
<T extends Entity> T createEntity(Map<?,?> config,
Class<T> type)
createEntity(EntitySpec.create(type).configure(config))
createEntity(EntitySpec)Collection<Entity> getEntities()
Iterable<Entity> getEntitiesInApplication(Application application)
@Nullable Entity getEntity(String id)
boolean isManaged(Entity entity)
void manage(Entity e)
void unmanage(Entity e)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||