Class AbstractInvocationContext

java.lang.Object
io.helidon.pico.api.AbstractInvocationContext
All Implemented Interfaces:
InvocationContext
Direct Known Subclasses:
DefaultInvocationContext

@Generated(value="io.helidon.builder.processor.tools.DefaultBuilderCreatorProvider", comments="version=1") public abstract class AbstractInvocationContext extends Object implements InvocationContext
Abstract implementation w/ builder for InvocationContext.
  • Constructor Details

    • AbstractInvocationContext

      protected AbstractInvocationContext(AbstractInvocationContext.Builder<?,?> b)
      Constructor using the builder argument.
      Parameters:
      b - the builder
  • Method Details

    • serviceProvider

      public ServiceProvider<?> serviceProvider()
      Description copied from interface: InvocationContext
      The service provider being intercepted.
      Specified by:
      serviceProvider in interface InvocationContext
      Returns:
      the service provider being intercepted
    • serviceTypeName

      public TypeName serviceTypeName()
      Description copied from interface: InvocationContext
      The service type name for the root service provider.
      Specified by:
      serviceTypeName in interface InvocationContext
      Returns:
      the service type name for the root service provider
    • classAnnotations

      public List<AnnotationAndValue> classAnnotations()
      Description copied from interface: InvocationContext
      The annotations on the enclosing type.
      Specified by:
      classAnnotations in interface InvocationContext
      Returns:
      the annotations on the enclosing type
    • elementInfo

      public TypedElementName elementInfo()
      Description copied from interface: InvocationContext
      The element info represents the method (or the constructor) being invoked.
      Specified by:
      elementInfo in interface InvocationContext
      Returns:
      the element info represents the method (or the constructor) being invoked
    • elementArgInfo

      public Optional<TypedElementName[]> elementArgInfo()
      Description copied from interface: InvocationContext
      The method/element argument info.
      Specified by:
      elementArgInfo in interface InvocationContext
      Returns:
      the method/element argument info
    • interceptors

      public List<Provider<Interceptor>> interceptors()
      Description copied from interface: InvocationContext
      The interceptor chain.
      Specified by:
      interceptors in interface InvocationContext
      Returns:
      the interceptor chain
    • contextData

      public Map<String,Object> contextData()
      Description copied from interface: InvocationContext
      The contextual info that can be shared between interceptors.
      Specified by:
      contextData in interface InvocationContext
      Returns:
      the read/write contextual data that is passed between each chained interceptor
    • __metaAttributes

      public static Map<String,Map<String,Object>> __metaAttributes()
      The map of meta attributes describing each element of this type.
      Returns:
      the map of meta attributes using the key being the attribute name
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringInner

      protected String toStringInner()
      Produces the inner portion of the toString() output (i.e., what is between the parens).
      Returns:
      portion of the toString output
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object another)
      Overrides:
      equals in class Object
    • visitAttributes

      public <T> void visitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx)
      Visits all attributes of io.helidon.pico.api.InvocationContext, calling the AttributeVisitor for each.
      Type Parameters:
      T - type of the user defined context
      Parameters:
      visitor - the visitor called for each attribute
      userDefinedCtx - any object you wish to pass to each visit call