站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.1.0 API 文档英文版

AnnotationConfigUtils (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

org.springframework.beans.factory.annotation
Class AnnotationConfigUtils

java.lang.Object
  extended by org.springframework.beans.factory.annotation.AnnotationConfigUtils

public class AnnotationConfigUtils
extends Object

Utility class that allows for convenient registration of common BeanPostProcessor definitions for annotation-based configuration.

Since:
2.1
Author:
Mark Fisher, Juergen Hoeller
See Also:
AutowiredAnnotationBeanPostProcessor, RequiredAnnotationBeanPostProcessor, CommonAnnotationBeanPostProcessor

Field Summary
static String AUTOWIRED_ANNOTATION_PROCESSOR_BEAN_NAME
          The bean name of the internally managed Autowired annotation processor.
static String COMMON_ANNOTATION_PROCESSOR_BEAN_NAME
          The bean name of the internally managed JSR-250 annotation processor.
static String REQUIRED_ANNOTATION_PROCESSOR_BEAN_NAME
          The bean name of the internally managed Required annotation processor.
 
Constructor Summary
AnnotationConfigUtils()
           
 
Method Summary
static void registerAnnotationConfigProcessors(BeanDefinitionRegistry registry)
          Register all relevant annotation post processors in the given registry.
static void registerAnnotationConfigProcessors(BeanDefinitionRegistry registry, Object source)
          Register all relevant annotation post processors in the given registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTOWIRED_ANNOTATION_PROCESSOR_BEAN_NAME

public static final String AUTOWIRED_ANNOTATION_PROCESSOR_BEAN_NAME
The bean name of the internally managed Autowired annotation processor.

See Also:
Constant Field Values

REQUIRED_ANNOTATION_PROCESSOR_BEAN_NAME

public static final String REQUIRED_ANNOTATION_PROCESSOR_BEAN_NAME
The bean name of the internally managed Required annotation processor.

See Also:
Constant Field Values

COMMON_ANNOTATION_PROCESSOR_BEAN_NAME

public static final String COMMON_ANNOTATION_PROCESSOR_BEAN_NAME
The bean name of the internally managed JSR-250 annotation processor.

See Also:
Constant Field Values
Constructor Detail

AnnotationConfigUtils

public AnnotationConfigUtils()
Method Detail

registerAnnotationConfigProcessors

public static void registerAnnotationConfigProcessors(BeanDefinitionRegistry registry)
Register all relevant annotation post processors in the given registry.

Parameters:
registry - the registry to operate on

registerAnnotationConfigProcessors

public static void registerAnnotationConfigProcessors(BeanDefinitionRegistry registry,
                                                      Object source)
Register all relevant annotation post processors in the given registry.

Parameters:
registry - the registry to operate on
source - the configuration source element (already extracted) that this registration was triggered from. May be null.

The Spring Framework

Copyright © 2002-2007 The Spring Framework.