Class SchemaObjectCustomizerContext


  • public class SchemaObjectCustomizerContext
    extends java.lang.Object
    Provides the context that a SchemaObject is in when customizing the schema in a SchemaObjectCustomizer
    • Method Detail

      • resource

        public java.lang.Object resource()
        For normal resources, this is the instance passed to the RestHandlerBuilder. Note that for sub-resources returned by a sub-resource-locator, this will be null.
        Returns:
        The rest resource that creates or consumes the object being described
      • methodHandle

        public java.util.Optional<java.lang.reflect.Method> methodHandle()
        Returns:
        The java method that builds or consumes the object being described
      • type

        public java.lang.Class<?> type()
        Returns:
        The java type of the object being described
      • parameterizedType

        public java.util.Optional<java.lang.reflect.Type> parameterizedType()
        Returns:
        For generic types, this is the generic type parameter
      • mediaType

        public javax.ws.rs.core.MediaType mediaType()
        Returns:
        The media type of the schema being described
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object