diff --git a/spring-framework-reference/src/beans.xml b/spring-framework-reference/src/beans.xml index 9211a8a88ea..67f2e9867bf 100644 --- a/spring-framework-reference/src/beans.xml +++ b/spring-framework-reference/src/beans.xml @@ -481,13 +481,6 @@ List userList service.getUsernameList(); - - dependency checking mode - - - - - lazy-initialization mode @@ -2052,10 +2045,7 @@ support=support@example.co.uk one exists, a fatal exception is thrown, which indicates that you may not use byType autowiring for that bean. If there are no matching beans, nothing happens; the - property is not set. If this is not desirable, setting the - dependency-check="objects" attribute value - specifies that an error should be thrown in this - case. + property is not set. @@ -2067,14 +2057,6 @@ support=support@example.co.uk error is raised. - - autodetect - - Chooses constructor or - byType through introspection of the bean - class. If a default no-arg constructor is found, the - byType mode is applied. - @@ -2203,83 +2185,6 @@ support=support@example.co.uk -
- Checking for dependencies - - - - The Spring IoC container can check for unresolved dependencies of - a bean deployed into the container. When enabling checking for - unresolved dependencies all JavaBean properties of the bean must have - explicit values set for them in the bean definition or have their values - set via autowiring. - - This feature is useful when you want to ensure that all properties - (or all properties of a certain type) are set on a bean. A bean class - often has default values for many properties, or some properties do not - apply to all usage scenarios, so this feature is of limited use. You can - enable dependency checking per bean, just as with the autowiring - functionality. The default is to not check - dependencies. In XML-based configuration metadata, you specify - dependency checking via the dependency-check - attribute in a bean definition, which can have the following - values. - - - Dependency checking modes - - - - - - - - - Mode - - Explanation - - - - - - none - - (Default) No dependency checking. Properties of the - bean that have no value specified for them are not - set. - - - - simple - - Dependency checking for primitive types and - collections (everything except collaborators). - - - - object - - Dependency checking for collaborators - only. - - - - all - - Dependency checking for collaborators, primitive - types, and collections. - - - -
- - If you use Java 5 and thus have access to source-level - annotations, you may find to be of - interest. -
-
Method injection