org.terracotta.context.extractor
Class ObjectContextExtractor

java.lang.Object
  extended by org.terracotta.context.extractor.ObjectContextExtractor

public final class ObjectContextExtractor
extends Object

Extracts context information from object instances and creates appropriate enclosing instances.


Method Summary
static ContextElement extract(Object from)
          Returns a ContextElement instance for the supplied object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 © 2015. All Rights Reserved.