Class UserConfigurations

java.lang.Object
org.springframework.boot.context.annotation.Configurations
org.springframework.boot.context.annotation.UserConfigurations
All Implemented Interfaces:
org.springframework.core.Ordered, org.springframework.core.PriorityOrdered

public class UserConfigurations extends Configurations implements org.springframework.core.PriorityOrdered
Configurations representing user-defined @Configuration classes (i.e. those defined in classes usually written by the user).
Since:
2.0.0
  • Constructor Details

    • UserConfigurations

      protected UserConfigurations(Collection<Class<?>> classes)
  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • merge

      protected UserConfigurations merge(Set<Class<?>> mergedClasses)
      Description copied from class: Configurations
      Merge configurations.
      Specified by:
      merge in class Configurations
      Parameters:
      mergedClasses - the merged classes
      Returns:
      a new configurations instance (must be of the same type as this instance)
    • of

      public static UserConfigurations of(Class<?>... classes)