org.springframework.context.annotation

Interface AnnotationConfigRegistry

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void register(java.lang.Class<?>... annotatedClasses)
      Register one or more annotated classes to be processed.
      void scan(java.lang.String... basePackages)
      Perform a scan within the specified base packages.
    • Method Detail

      • register

        void register(java.lang.Class<?>... annotatedClasses)
        Register one or more annotated classes to be processed.

        Calls to register are idempotent; adding the same annotated class more than once has no additional effect.

        Parameters:
        annotatedClasses - one or more annotated classes, e.g. @Configuration classes
      • scan

        void scan(java.lang.String... basePackages)
        Perform a scan within the specified base packages.
        Parameters:
        basePackages - the packages to check for annotated classes