类 Configurations
java.lang.Object
cn.taketoday.context.annotation.config.Configurations
- 直接已知子类:
AutoConfigurations,UserConfigurations
A set of
@Configuration classes that can be registered in
ApplicationContext. Classes can be returned from one or more
Configurations instances by using getClasses(Configurations[]). The
resulting array follows the ordering rules usually applied by the
ApplicationContext and/or custom ImportSelector implementations.
This class is primarily intended for use with tests that need to specify configuration
classes but can't use cn.taketoday.framework.ApplicationRunner.
Implementations of this class should be annotated with @Order or implement
Ordered.
- 从以下版本开始:
- 4.0 2022/2/1 12:13
- 作者:
- Phillip Webb, Harry Yang
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static Class<?>[]getClasses(Configurations... configurations) Return the classes from all the specified configurations in the order that they would be registered.static Class<?>[]getClasses(Collection<Configurations> configurations) Return the classes from all the specified configurations in the order that they would be registered.protected Configurationsmerge(Configurations other) Merge configurations from another source of the same type.protected abstract ConfigurationsMerge configurations.protected Collection<Class<?>>sort(Collection<Class<?>> classes) Sort configuration classes into the order that they should be applied.
-
构造器详细资料
-
Configurations
-
-
方法详细资料
-
sort
Sort configuration classes into the order that they should be applied.- 参数:
classes- the classes to sort- 返回:
- a sorted set of classes
-
getClasses
-
merge
Merge configurations from another source of the same type.- 参数:
other- the otherConfigurations(must be of the same type as this instance)- 返回:
- a new configurations instance (must be of the same type as this instance)
-
merge
Merge configurations.- 参数:
mergedClasses- the merged classes- 返回:
- a new configurations instance (must be of the same type as this instance)
-
getClasses
Return the classes from all the specified configurations in the order that they would be registered.- 参数:
configurations- the source configuration- 返回:
- configuration classes in registration order
-
getClasses
Return the classes from all the specified configurations in the order that they would be registered.- 参数:
configurations- the source configuration- 返回:
- configuration classes in registration order
-