brooklyn.entity.proxying
Interface EntitySpec<T extends Entity>
- Type Parameters:
T - The type of entity to be created
public interface EntitySpec<T extends Entity>
Gives details of an entity to be created. It describes the entity's configuration, and is
reusable to create multiple entities with the same configuration.
To create an EntitySpec, it is strongly encouraged to use brooklyn.entity.proxying.EntitySpecs.
Users who need to implement this are strongly encouraged to extend
brooklyn.entity.proxying.BasicEntitySpec.
getType
Class<T> getType()
- Returns:
- The type of the entity
getDisplayName
String getDisplayName()
- Returns:
- The display name of the entity
getImplementation
@Nullable
Class<? extends T> getImplementation()
- Returns:
- The implementation of the entity; if not null. this overrides any defaults or other configuration
- See Also:
on the entity interface classes for how defaults are defined.,
for how implementations can be defined globally
getAdditionalInterfaces
Set<Class<?>> getAdditionalInterfaces()
getParent
Entity getParent()
- Returns:
- The entity's parent
getFlags
Map<String,?> getFlags()
- Returns:
- Read-only construction flags
- See Also:
declarations on the entity type
getConfig
Map<ConfigKey<?>,Object> getConfig()
- Returns:
- Read-only configuration values
getPolicies
List<Policy> getPolicies()
Copyright © 2013. All Rights Reserved.