Package org.terracotta.context.extractor
Class ObjectContextExtractor
- java.lang.Object
-
- org.terracotta.context.extractor.ObjectContextExtractor
-
public final class ObjectContextExtractor extends Object
Extracts context information from object instances and creates appropriate enclosingContextElementinstances.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContextElementextract(Object from)Returns aContextElementinstance for the supplied object.
-
-
-
Method Detail
-
extract
public static ContextElement extract(Object from)
Returns aContextElementinstance for the supplied object.The supplied object's class type is parsed for
ContextAttributeannotations and the associated attributes are extracted and returned in the form of aContextElement.- Parameters:
from- object to extract context for- Returns:
- a
ContextElement
-
-