T
- The type of location to be createdpublic class LocationSpec<T extends Location> extends AbstractBrooklynObjectSpec<T,LocationSpec<T>>
create(...)
methods.Modifier and Type | Method and Description |
---|---|
static <T extends Location> |
create(java.lang.Class<T> type)
Creates a new
LocationSpec instance for a location of the given type. |
static <T extends Location> |
create(LocationSpec<T> spec)
Copies entity spec so its configuration can be overridden without modifying the
original entity spec.
|
static <T extends Location> |
create(java.util.Map<?,?> config,
java.lang.Class<T> type)
Creates a new
LocationSpec instance with the given config, for a location of the given type. |
<E> LocationSpec<T> |
extension(java.lang.Class<E> extensionType,
E extension) |
<E> LocationSpec<T> |
extensions(java.util.Map<java.lang.Class<?>,?> extensions) |
java.util.Map<ConfigKey<?>,java.lang.Object> |
getConfig() |
java.util.Map<java.lang.Class<?>,java.lang.Object> |
getExtensions() |
java.util.Map<java.lang.String,?> |
getFlags() |
Location |
getParent() |
LocationSpec<T> |
parent(Location val) |
addSearchPath, catalogItemId, catalogItemIdAndSearchPath, catalogItemIdIfNotNull, clearConfig, configure, configure, configure, configure, configure, configure, configureIfNotNull, displayName, equals, getCatalogItemId, getCatalogItemIdSearchPath, getDisplayName, getParameters, getTags, getType, hashCode, parameters, parametersAdd, parametersReplace, removeConfig, removeFlag, stackCatalogItemId, tag, tags, tagsAdd, tagsReplace, toString
public static <T extends Location> LocationSpec<T> create(java.lang.Class<T> type)
LocationSpec
instance for a location of the given type. The returned
LocationSpec
can then be customized.type
- A Location
classpublic static <T extends Location> LocationSpec<T> create(java.util.Map<?,?> config, java.lang.Class<T> type)
LocationSpec
instance with the given config, for a location of the given type.
This is primarily for groovy code; equivalent to LocationSpec.create(type).configure(config)
.config
- The spec's configuration (see AbstractBrooklynObjectSpec.configure(Map)
).type
- A Location
classpublic static <T extends Location> LocationSpec<T> create(LocationSpec<T> spec)
public LocationSpec<T> parent(Location val)
public <E> LocationSpec<T> extension(java.lang.Class<E> extensionType, E extension)
public <E> LocationSpec<T> extensions(java.util.Map<java.lang.Class<?>,?> extensions)
public Location getParent()
public java.util.Map<java.lang.String,?> getFlags()
getFlags
in class AbstractBrooklynObjectSpec<T extends Location,LocationSpec<T extends Location>>
declarations on the location type
public java.util.Map<ConfigKey<?>,java.lang.Object> getConfig()
getConfig
in class AbstractBrooklynObjectSpec<T extends Location,LocationSpec<T extends Location>>
public java.util.Map<java.lang.Class<?>,java.lang.Object> getExtensions()