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

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


The Spring Framework

org.springframework.beans.factory.annotation
Annotation Type Required


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Required

Marks a method (typically a JavaBean setter method) as being 'required': that is, the setter method must be configured to be dependency-injected with a value.

Please do consult the javadoc for the RequiredAnnotationBeanPostProcessor class (which, by default, checks for the presence of this annotation).

Since:
2.0
Author:
Rob Harrop
See Also:
RequiredAnnotationBeanPostProcessor


The Spring Framework

Copyright © 2002-2007 The Spring Framework.