Package cn.sliew.milky.component
Class AbstractComponent
- java.lang.Object
-
- cn.sliew.milky.component.AbstractComponent
-
- All Implemented Interfaces:
AttributeMap,TagSet,Component,Managable,Probeable,Tenantable,Versionable,Serializable
public abstract class AbstractComponent extends Object implements Component
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractComponent(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Attribute<T>attr(AttributeKey<T> key)<T> Collection<Attribute<T>>attrs()StringgetIdentifier()StringgetName()<T> booleanhasAttr(AttributeKey<T> key)booleanhasTag(Tag tag)voidtag(Tag tag)Collection<Tag>tags()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cn.sliew.milky.component.Managable
getArchitecture, getModule, getOrganization, getOwner
-
Methods inherited from interface cn.sliew.milky.component.Probeable
isLiveness, isReadiness
-
Methods inherited from interface cn.sliew.milky.component.Tenantable
getApplication, getEnvironment, getNamespace
-
Methods inherited from interface cn.sliew.milky.component.Versionable
getVersion
-
-
-
-
Constructor Detail
-
AbstractComponent
public AbstractComponent(String name)
-
-
Method Detail
-
getName
public String getName()
-
getIdentifier
public String getIdentifier()
- Specified by:
getIdentifierin interfaceComponent- Returns:
- component unqiue identifier
-
attrs
public <T> Collection<Attribute<T>> attrs()
- Specified by:
attrsin interfaceAttributeMap
-
attr
public <T> Attribute<T> attr(AttributeKey<T> key)
- Specified by:
attrin interfaceAttributeMap
-
hasAttr
public <T> boolean hasAttr(AttributeKey<T> key)
- Specified by:
hasAttrin interfaceAttributeMap
-
tags
public Collection<Tag> tags()
-
-