org.springframework.web.method

Class HandlerTypePredicate.Builder

  • java.lang.Object
    • org.springframework.web.method.HandlerTypePredicate.Builder
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • basePackage

        public HandlerTypePredicate.Builder basePackage(java.lang.String... packages)
        Match handlers declared under a base package, e.g. "org.example".
        Parameters:
        packages - one or more base package classes
      • assignableType

        public HandlerTypePredicate.Builder assignableType(java.lang.Class<?>... types)
        Match handlers that are assignable to a given type.
        Parameters:
        types - one or more handler super types
      • annotation

        public final HandlerTypePredicate.Builder annotation(java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)
        Match types that are annotated with one of the given annotations.
        Parameters:
        annotations - one or more annotations to check for