org.springframework.context.annotation
Class ConfigurationClassUtils

java.lang.Object
  extended by org.springframework.context.annotation.ConfigurationClassUtils

abstract class ConfigurationClassUtils
extends java.lang.Object

Utilities for processing @Configuration classes.

Since:
3.1
Author:
Chris Beams

Field Summary
private static java.lang.String CONFIGURATION_CLASS_ATTRIBUTE
           
private static java.lang.String CONFIGURATION_CLASS_FULL
           
private static java.lang.String CONFIGURATION_CLASS_LITE
           
private static Log logger
           
 
Constructor Summary
ConfigurationClassUtils()
           
 
Method Summary
static boolean checkConfigurationClassCandidate(BeanDefinition beanDef, MetadataReaderFactory metadataReaderFactory)
          Check whether the given bean definition is a candidate for a configuration class, and mark it accordingly.
static boolean isConfigurationCandidate(AnnotationMetadata metadata)
           
static boolean isFullConfigurationCandidate(AnnotationMetadata metadata)
           
static boolean isFullConfigurationClass(BeanDefinition beanDef)
          Determine whether the given bean definition indicates a full @Configuration class.
static boolean isLiteConfigurationCandidate(AnnotationMetadata metadata)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final Log logger

CONFIGURATION_CLASS_FULL

private static final java.lang.String CONFIGURATION_CLASS_FULL
See Also:
Constant Field Values

CONFIGURATION_CLASS_LITE

private static final java.lang.String CONFIGURATION_CLASS_LITE
See Also:
Constant Field Values

CONFIGURATION_CLASS_ATTRIBUTE

private static final java.lang.String CONFIGURATION_CLASS_ATTRIBUTE
Constructor Detail

ConfigurationClassUtils

ConfigurationClassUtils()
Method Detail

checkConfigurationClassCandidate

public static boolean checkConfigurationClassCandidate(BeanDefinition beanDef,
                                                       MetadataReaderFactory metadataReaderFactory)
Check whether the given bean definition is a candidate for a configuration class, and mark it accordingly.

Parameters:
beanDef - the bean definition to check
metadataReaderFactory - the current factory in use by the caller
Returns:
whether the candidate qualifies as (any kind of) configuration class

isConfigurationCandidate

public static boolean isConfigurationCandidate(AnnotationMetadata metadata)

isFullConfigurationCandidate

public static boolean isFullConfigurationCandidate(AnnotationMetadata metadata)

isLiteConfigurationCandidate

public static boolean isLiteConfigurationCandidate(AnnotationMetadata metadata)

isFullConfigurationClass

public static boolean isFullConfigurationClass(BeanDefinition beanDef)
Determine whether the given bean definition indicates a full @Configuration class.