org.springframework.integration.support
Class ComponentMetadata
java.lang.Object
org.springframework.integration.support.ComponentMetadata
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- MessageHistoryEvent
public class ComponentMetadata
- extends java.lang.Object
- implements java.io.Serializable
Metadata describing a messaging component including the
component's name and type as well as any other attributes.
- Since:
- 2.0
- Author:
- Mark Fisher
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
COMPONENT_NAME
public static final java.lang.String COMPONENT_NAME
- See Also:
- Constant Field Values
COMPONENT_TYPE
public static final java.lang.String COMPONENT_TYPE
- See Also:
- Constant Field Values
ComponentMetadata
public ComponentMetadata()
- Create a new ComponentMetadata instance with no attributes.
ComponentMetadata
public ComponentMetadata(ComponentMetadata metadata)
- Create a new ComponentMetadata instance that copies all attributes
from the provided ComponentMetadata.
setComponentName
public ComponentMetadata setComponentName(java.lang.String componentName)
setComponentType
public ComponentMetadata setComponentType(java.lang.String componentType)
getComponentName
public java.lang.String getComponentName()
getComponentType
public java.lang.String getComponentType()
setAttribute
public ComponentMetadata setAttribute(java.lang.String key,
java.lang.String value)
setAttribute
public ComponentMetadata setAttribute(java.lang.String key,
java.lang.Number value)
setAttribute
public ComponentMetadata setAttribute(java.lang.String key,
java.lang.Boolean value)
getAttribute
public java.lang.Object getAttribute(java.lang.String key)
getAttribute
public <T> T getAttribute(java.lang.String key,
java.lang.Class<T> type)
getAttributes
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object