T - The type of policy to be createdpublic class PolicySpec<T extends Policy> extends AbstractBrooklynObjectSpec<T,PolicySpec<T>>
create(...) methods.| Modifier and Type | Method and Description |
|---|---|
static <T extends Policy> |
create(java.lang.Class<T> type)
Creates a new
PolicySpec instance for a policy of the given type. |
static <T extends Policy> |
create(java.util.Map<?,?> config,
java.lang.Class<T> type)
Creates a new
PolicySpec instance with the given config, for a policy of the given type. |
PolicySpec<T> |
uniqueTag(java.lang.String uniqueTag) |
addSearchPath, catalogItemId, catalogItemIdAndSearchPath, catalogItemIdIfNotNull, clearConfig, configure, configure, configure, configure, configure, configure, configureIfNotNull, displayName, equals, getCatalogItemId, getCatalogItemIdSearchPath, getConfig, getDisplayName, getFlags, getParameters, getTags, getType, hashCode, parameters, parametersAdd, parametersReplace, removeConfig, removeFlag, stackCatalogItemId, tag, tags, tagsAdd, tagsReplace, toStringpublic static <T extends Policy> PolicySpec<T> create(java.lang.Class<T> type)
PolicySpec instance for a policy of the given type. The returned
PolicySpec can then be customized.type - A Policy classpublic static <T extends Policy> PolicySpec<T> create(java.util.Map<?,?> config, java.lang.Class<T> type)
PolicySpec instance with the given config, for a policy of the given type.
This is primarily for groovy code; equivalent to PolicySpec.create(type).configure(config).config - The spec's configuration (see AbstractBrooklynObjectSpec.configure(Map)).type - A Policy classpublic PolicySpec<T> uniqueTag(java.lang.String uniqueTag)