From 5ce4cada5362f330de847d92a94fb3b001e6b3cd Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Sat, 7 Aug 2010 13:57:18 +0000 Subject: [PATCH] Fix typos in Chapter 27 (SPR-7339) Note that SPR-7433 has also been created to consider removing this chapter entirely. --- spring-framework-reference/src/metadata.xml | 27 ++++++++++----------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/spring-framework-reference/src/metadata.xml b/spring-framework-reference/src/metadata.xml index cc65d48b043..a9bcd5622ad 100644 --- a/spring-framework-reference/src/metadata.xml +++ b/spring-framework-reference/src/metadata.xml @@ -10,7 +10,7 @@ Java 5 introduced source-level metadata called annotations to program elements, usually, classes and/or methods - For example we might add metadata at the class level using the + For example we might add metadata at the class level using Spring's @Transactional annotation that is used to support Spring's declarative transaction management features. @@ -32,18 +32,18 @@ public class PetStoreImpl implements PetStoreFacade, OrderService { - The value of using annoations has been broadly embrassed by the JEE - community. For example, it's much less verbose than the traditional XML + The value of using annoations has been broadly embraced by the Java + community. For example, it's much less verbose than traditional XML deployment descriptors. While it is desirable to externalize some things from program source code, some important enterprise settings - notably - transaction characteristics - arguably belong in program source. + transaction characteristics - arguably belong in program source. - Spring uses Java 5 annotations thoughout the framework across a wide - range of features such as DI, MVC, and AOP and supports JEE standard - annotations such as @PreDestroy and @PostConstruct defined by JSR-250. - This chapter describes the @Required attribute and provides links to other - parts the documentation where the various attributes are described in more - detail. + Spring uses Java 5 annotations thoughout the framework and across a + wide range of features such as DI, MVC, and AOP and supports standardized + annotations such as @PreDestroy and @PostConstruct specified by JSR-250, and + @Inject specified by JSR-330. This chapter describes the @Required annotation + and provides links to other parts of the documentation where the various + annotations are described in more detail.
@@ -98,10 +98,9 @@ public class PetStoreImpl implements PetStoreFacade, OrderService {Exception in thread "main" java.lang.IllegalArgumentException: Property 'movieFinder' is required for bean 'movieLister'. - There is one last little (small, tiny) piece of Spring - configuration that is required to actually 'switch - on' this behavior. Simply annotating the - 'setter' properties of your classes is not enough + There is one last bit of Spring configuration that is required to + actually 'switch on' this behavior. Simply annotating + the 'setter' properties of your classes is not enough to get this behavior. You need to enable a component that is aware of the @Required annotation and that can process it appropriately.