Class ConfigurationClassUtils
java.lang.Object
org.springframework.context.annotation.ConfigurationClassUtils
Utilities for identifying and configuring
Configuration
classes.- Since:
- 6.0
- Author:
- Chris Beams, Juergen Hoeller, Sam Brannen, Stephane Nicoll
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
getOrder
(BeanDefinition beanDef) Determine the order for the given configuration class bean definition, as set bycheckConfigurationClassCandidate(BeanDefinition, MetadataReaderFactory)
.getOrder
(AnnotationMetadata metadata) Determine the order for the given configuration class metadata.static Class
<?> initializeConfigurationClass
(Class<?> userClass) Initialize a configuration class proxy for the specified class.
-
Constructor Details
-
ConfigurationClassUtils
public ConfigurationClassUtils()
-
-
Method Details
-
initializeConfigurationClass
-
getOrder
Determine the order for the given configuration class metadata.- Parameters:
metadata
- the metadata of the annotated class- Returns:
- the
@Order
annotation value on the configuration class, orOrdered.LOWEST_PRECEDENCE
if none declared - Since:
- 5.0
-
getOrder
Determine the order for the given configuration class bean definition, as set bycheckConfigurationClassCandidate(BeanDefinition, MetadataReaderFactory)
.- Parameters:
beanDef
- the bean definition to check- Returns:
- the
@Order
annotation value on the configuration class, orOrdered.LOWEST_PRECEDENCE
if none declared - Since:
- 4.2
-