Package org.terracotta.context.extractor
Class LazyContextElement
- java.lang.Object
-
- org.terracotta.context.extractor.LazyContextElement
-
- All Implemented Interfaces:
ContextElement
class LazyContextElement extends java.lang.Object implements ContextElement
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<? extends java.lang.String,AttributeGetter<java.lang.Object>>attributesprivate java.lang.Class<?>identifier
-
Constructor Summary
Constructors Constructor Description LazyContextElement(java.lang.Class<?> identifier, java.util.Map<? extends java.lang.String,AttributeGetter<java.lang.Object>> attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>attributes()The set of attributes for the associated Java object.java.lang.Class<?>identifier()The type of the associated Java object.java.lang.StringtoString()
-
-
-
Field Detail
-
identifier
private final java.lang.Class<?> identifier
-
attributes
private final java.util.Map<? extends java.lang.String,AttributeGetter<java.lang.Object>> attributes
-
-
Constructor Detail
-
LazyContextElement
public LazyContextElement(java.lang.Class<?> identifier, java.util.Map<? extends java.lang.String,AttributeGetter<java.lang.Object>> attributes)
-
-
Method Detail
-
identifier
public java.lang.Class<?> identifier()
Description copied from interface:ContextElementThe type of the associated Java object.- Specified by:
identifierin interfaceContextElement- Returns:
- the associated object's class
-
attributes
public java.util.Map<java.lang.String,java.lang.Object> attributes()
Description copied from interface:ContextElementThe set of attributes for the associated Java object.- Specified by:
attributesin interfaceContextElement- Returns:
- the associated object's attributes
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-