From a8f4c596fde0b9dff23a111187f7a03615f1aa5b Mon Sep 17 00:00:00 2001 From: cac03 Date: Wed, 26 Sep 2018 21:17:07 +0300 Subject: [PATCH] Fix trivial errors in data-access and core-aop in docs Fix some syntax errors and typos * Fix syntax error in core-aop docs which caused incorrect document generation * Surround @Pointcut values with quotation marks * Replace 'I' with 'you' in the 'In the XML style I can declare the first two pointcuts' sentence * Fix compileror typo * Remove redundant parenthesis * Remove redundant commas * Add 'can' to the 'You configure additional aspects in similar fashion' sentence * Replace 'You can annotation any method' with 'You can annotate any method' * Add space to 'non-recoverablepersistence' * Replace 'we shows' with 'we show' * Fix 'java.utils.Map' typo * Add space to 'byusing' * Add space to '`Lifecycle`by' * Replace 'You cN' with 'You can' * Replace 'encourag' with 'encourage' --- src/docs/asciidoc/core/core-aop.adoc | 17 +++++++++-------- src/docs/asciidoc/data-access.adoc | 26 +++++++++++++------------- 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/src/docs/asciidoc/core/core-aop.adoc b/src/docs/asciidoc/core/core-aop.adoc index 5049f66712..ed9a68643e 100644 --- a/src/docs/asciidoc/core/core-aop.adoc +++ b/src/docs/asciidoc/core/core-aop.adoc @@ -1328,7 +1328,8 @@ If the first parameter is of the `JoinPoint`, `ProceedingJoinPoint`, or of the `argNames` attribute. For example, if you modify the preceding advice to receive the join point object, the `argNames` attribute need not include it: + -====[source,java,indent=0] +==== +[source,java,indent=0] [subs="verbatim,quotes"] ---- @Before(value="com.xyz.lib.Pointcuts.anyPublicMethod() && target(bean) && @annotation(auditable)", @@ -1751,7 +1752,7 @@ Assume that you have a `SystemArchitecture` aspect as described in <> if you have not already done so. -You cN annotate the service layer with `@Transactional` annotations and instruct the +You can annotate the service layer with `@Transactional` annotations and instruct the Spring container to find these annotations and provide transactional semantics for these annotated methods. The following example shows how to do so: @@ -6355,7 +6355,7 @@ a non-invasiveness perspective and can feel more natural to JPA developers. [[orm-jpa-tx]] ==== Spring-driven JPA transactions -NOTE: We strongly encourag you to read <>, if you have not already done +NOTE: We strongly encourage you to read <>, if you have not already done so, to get more detailed coverage of Spring's declarative transaction support. The recommended strategy for JPA is local transactions through JPA's native transaction @@ -6635,7 +6635,7 @@ wraps a different XML representation, as the following table indicates: | `java.io.File`, `java.io.InputStream`, or `java.io.Reader` |=== -Even though there are two separate marshalling interfaces ( `Marshaller` and +Even though there are two separate marshalling interfaces (`Marshaller` and `Unmarshaller`), all implementations in Spring-WS implement both in one class. This means that you can wire up one marshaller class and refer to it both as a marshaller and as an unmarshaller in your `applicationContext.xml`.