public interface RegisteredType extends Identifiable
Modifier and Type | Interface and Description |
---|---|
static interface |
RegisteredType.TypeImplementationPlan |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getAliases()
Alias words defined for this type
|
java.lang.String |
getDescription() |
java.lang.String |
getDisplayName() |
java.lang.String |
getIconUrl() |
java.lang.String |
getId() |
BrooklynTypeRegistry.RegisteredTypeKind |
getKind() |
java.util.Collection<OsgiBundleWithUrl> |
getLibraries() |
RegisteredType.TypeImplementationPlan |
getPlan() |
java.util.Set<java.lang.Object> |
getSuperTypes() |
java.lang.String |
getSymbolicName() |
java.util.Set<java.lang.Object> |
getTags()
Tags attached to this item
|
java.lang.String |
getVersion() |
boolean |
isDeprecated() |
boolean |
isDisabled() |
java.lang.String getId()
getId
in interface Identifiable
BrooklynTypeRegistry.RegisteredTypeKind getKind()
java.lang.String getSymbolicName()
java.lang.String getVersion()
java.util.Collection<OsgiBundleWithUrl> getLibraries()
java.lang.String getDisplayName()
java.lang.String getDescription()
java.lang.String getIconUrl()
@Beta java.util.Set<java.lang.Object> getSuperTypes()
Class
or RegisteredType
This should normally include at least one Class
object for filtering purposes:
For beans, this should include the java type that the BrooklynTypeRegistry
will create.
For specs, this should refer to the BrooklynObject
type that the created spec will point at
(e.g. the concrete Entity
, not the EntitySpec
).
This will normally not return all ancestor classes,
and it is not required even to return the most specific java class or classes:
such as if the concrete type is private and callers should know only about a particular public interface,
or if precise type details are unavailable and all that is known at creation is some higher level interface/supertype
(e.g. this may return Entity
even though the spec points at a specific subclass,
for instance because the YAML has not yet been parsed or OSGi bundles downloaded).
This may include other registered types such as marker interfaces.
It may even include multiple interfaces but exclude the concrete subclass which implements them all (for instance if that concrete implementation is an internal private class). However it must be possible for the corresponding transformer to instantiate that type at runtime.
boolean isDeprecated()
boolean isDisabled()
java.util.Set<java.lang.String> getAliases()
java.util.Set<java.lang.Object> getTags()
RegisteredType.TypeImplementationPlan getPlan()
BrooklynTypePlanTransformer
which can then use this object to instantiate this type