T
- The type of enricher to be createdpublic class EnricherSpec<T extends Enricher> extends AbstractBrooklynObjectSpec<T,EnricherSpec<T>>
create(...)
methods.Modifier and Type | Class and Description |
---|---|
static class |
EnricherSpec.ExtensibleEnricherSpec<T extends Enricher,K extends EnricherSpec.ExtensibleEnricherSpec<T,K>> |
Modifier and Type | Method and Description |
---|---|
EnricherSpec<T> |
configure(java.lang.CharSequence key,
java.lang.Object val) |
<V> EnricherSpec<T> |
configure(ConfigKey.HasConfigKey<V> key,
Task<? extends V> val) |
<V> EnricherSpec<T> |
configure(ConfigKey.HasConfigKey<V> key,
V val) |
<V> EnricherSpec<T> |
configure(ConfigKey<V> key,
Task<? extends V> val) |
<V> EnricherSpec<T> |
configure(ConfigKey<V> key,
V val) |
EnricherSpec<T> |
configure(java.util.Map<?,?> val) |
<V> EnricherSpec<T> |
configureIfNotNull(ConfigKey<V> key,
V val) |
static <T extends Enricher> |
create(java.lang.Class<? extends T> type)
Creates a new
EnricherSpec instance for an enricher of the given type. |
static <T extends Enricher> |
create(java.util.Map<?,?> config,
java.lang.Class<? extends T> type)
Creates a new
EnricherSpec instance with the given config, for an enricher of the given type. |
java.util.Map<ConfigKey<?>,java.lang.Object> |
getConfig() |
java.util.Map<java.lang.String,?> |
getFlags() |
EnricherSpec<T> |
uniqueTag(java.lang.String uniqueTag) |
catalogItemId, displayName, equals, getCatalogItemId, getDisplayName, getTags, getType, hashCode, tag, tags, toString
public static <T extends Enricher> EnricherSpec<T> create(java.lang.Class<? extends T> type)
EnricherSpec
instance for an enricher of the given type. The returned
EnricherSpec
can then be customized.type
- A Enricher
classpublic static <T extends Enricher> EnricherSpec<T> create(java.util.Map<?,?> config, java.lang.Class<? extends T> type)
EnricherSpec
instance with the given config, for an enricher of the given type.
This is primarily for groovy code; equivalent to EnricherSpec.create(type).configure(config)
.config
- The spec's configuration (see configure(Map)
).type
- An Enricher
classpublic EnricherSpec<T> uniqueTag(java.lang.String uniqueTag)
public EnricherSpec<T> configure(java.util.Map<?,?> val)
public EnricherSpec<T> configure(java.lang.CharSequence key, java.lang.Object val)
public <V> EnricherSpec<T> configure(ConfigKey<V> key, V val)
public <V> EnricherSpec<T> configureIfNotNull(ConfigKey<V> key, V val)
public <V> EnricherSpec<T> configure(ConfigKey<V> key, Task<? extends V> val)
public <V> EnricherSpec<T> configure(ConfigKey.HasConfigKey<V> key, V val)
public <V> EnricherSpec<T> configure(ConfigKey.HasConfigKey<V> key, Task<? extends V> val)
public java.util.Map<java.lang.String,?> getFlags()
declarations on the enricher type
public java.util.Map<ConfigKey<?>,java.lang.Object> getConfig()