Class ObjectContextExtractor


  • public final class ObjectContextExtractor
    extends Object
    Extracts context information from object instances and creates appropriate enclosing ContextElement instances.
    • 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