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
enclosing instances.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
extract
public static ContextElement extract(Object from)
- Returns a
ContextElement instance for the supplied object.
The supplied object's class type is parsed for ContextAttribute
annotations and the associated attributes are extracted and returned in the
form of a ContextElement.
- Parameters:
from - object to extract context for
- Returns:
- a
ContextElement
Copyright © 2016. All Rights Reserved.