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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic intgetOrder(BeanDefinition beanDef) Determine the order for the given configuration class bean definition, as set bycheckConfigurationClassCandidate(org.springframework.beans.factory.config.BeanDefinition, org.springframework.core.type.classreading.MetadataReaderFactory).static IntegergetOrder(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- 
ConfigurationClassUtilspublic ConfigurationClassUtils()
 
- 
- 
Method Details- 
initializeConfigurationClassInitialize a configuration class proxy for the specified class.- Parameters:
- userClass- the configuration class to initialize
 
- 
getOrderDetermine the order for the given configuration class metadata.- Parameters:
- metadata- the metadata of the annotated class
- Returns:
- the @Orderannotation value on the configuration class, orOrdered.LOWEST_PRECEDENCEif none declared
- Since:
- 5.0
 
- 
getOrderDetermine the order for the given configuration class bean definition, as set bycheckConfigurationClassCandidate(org.springframework.beans.factory.config.BeanDefinition, org.springframework.core.type.classreading.MetadataReaderFactory).- Parameters:
- beanDef- the bean definition to check
- Returns:
- the @Orderannotation value on the configuration class, orOrdered.LOWEST_PRECEDENCEif none declared
- Since:
- 4.2
 
 
-