EntitySpecResolver instead.@Deprecated
public interface ServiceTypeResolver
entity specifications based on the serviceType in a template.
The getTypePrefix() method returns a string that should match the beginning of the
service type. The resolver implementation will use the rest of the service type information
to create and decorate an approprate entity.
The resolvers are loaded using the ServiceLoader mechanism, allowing external libraries
to add extra service type implementations that will be picked up at runtime.
BrooklynServiceTypeResolver,
ChefServiceTypeResolver| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_TYPE_PREFIX
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Entity> |
decorateSpec(BrooklynComponentTemplateResolver resolver,
EntitySpec<T> spec)
Deprecated.
Takes the provided
EntitySpec and decorates it appropriately for the service type. |
java.lang.String |
getBrooklynType(java.lang.String serviceType)
Deprecated.
The name of the Java type that Brooklyn will instantiate to create the
service.
|
CatalogItem<Entity,EntitySpec<?>> |
getCatalogItem(BrooklynComponentTemplateResolver resolver,
java.lang.String serviceType)
Deprecated.
Returns the
CatalogItem if there is one for the given type. |
java.lang.String |
getTypePrefix()
Deprecated.
The service type prefix the resolver is responsible for.
|
static final java.lang.String DEFAULT_TYPE_PREFIX
java.lang.String getTypePrefix()
java.lang.String getBrooklynType(java.lang.String serviceType)
CatalogItem<Entity,EntitySpec<?>> getCatalogItem(BrooklynComponentTemplateResolver resolver, java.lang.String serviceType)
CatalogItem if there is one for the given type.
If no type, callers should fall back to default classloading.
<T extends Entity> void decorateSpec(BrooklynComponentTemplateResolver resolver, EntitySpec<T> spec)
EntitySpec and decorates it appropriately for the service type.
This includes setting configuration and adding policies, enrichers and initializers.