@@ -202,7 +202,7 @@ implementation detail actually means.
202
202
203
203
@AspectJ refers to a style of declaring aspects as regular Java classes annotated with
204
204
annotations. The @AspectJ style was introduced by the
205
- http ://www.eclipse.org/aspectj[AspectJ project] as part of the AspectJ 5 release. Spring
205
+ https ://www.eclipse.org/aspectj[AspectJ project] as part of the AspectJ 5 release. Spring
206
206
interprets the same annotations as AspectJ 5, using a library supplied by AspectJ
207
207
for pointcut parsing and matching. The AOP runtime is still pure Spring AOP, though, and
208
208
there is no dependency on the AspectJ compiler or weaver.
@@ -352,9 +352,9 @@ matches the execution of any method named `transfer`:
352
352
353
353
The pointcut expression that forms the value of the `@Pointcut` annotation is a regular
354
354
AspectJ 5 pointcut expression. For a full discussion of AspectJ's pointcut language, see
355
- the http ://www.eclipse.org/aspectj/doc/released/progguide/index.html[AspectJ
355
+ the https ://www.eclipse.org/aspectj/doc/released/progguide/index.html[AspectJ
356
356
Programming Guide] (and, for extensions, the
357
- http ://www.eclipse.org/aspectj/doc/released/adk15notebook/index.html[AspectJ 5
357
+ https ://www.eclipse.org/aspectj/doc/released/adk15notebook/index.html[AspectJ 5
358
358
Developer's Notebook]) or one of the books on AspectJ (such as _Eclipse AspectJ_, by Colyer
359
359
et. al., or _AspectJ in Action_, by Ramnivas Laddad).
360
360
@@ -462,9 +462,8 @@ it is natural and straightforward to identify specific beans by name.
462
462
[[aop-pointcuts-combining]]
463
463
==== Combining Pointcut Expressions
464
464
465
- You can combine pointcut expressions can be combined by using `&&,` `||` and `!`. You can also
466
- refer to pointcut expressions by name. The following example shows three pointcut
467
- expressions:
465
+ You can combine pointcut expressions by using `&&,` `||` and `!`. You can also refer to
466
+ pointcut expressions by name. The following example shows three pointcut expressions:
468
467
469
468
====
470
469
[source,java,indent=0]
@@ -620,7 +619,7 @@ method that takes no parameters, whereas `(..)` matches any number (zero or more
620
619
The `({asterisk})` pattern matches a method that takes one parameter of any type.
621
620
`(*,String)` matches a method that takes two parameters. The first can be of any type, while the
622
621
second must be a `String`. Consult the
623
- http ://www.eclipse.org/aspectj/doc/released/progguide/semantics-pointcuts.html[Language
622
+ https ://www.eclipse.org/aspectj/doc/released/progguide/semantics-pointcuts.html[Language
624
623
Semantics] section of the AspectJ Programming Guide for more information.
625
624
626
625
The following examples show some common pointcut expressions:
@@ -1317,7 +1316,7 @@ following strategy to determine parameter names:
1317
1316
====
1318
1317
+
1319
1318
If the first parameter is of the `JoinPoint`, `ProceedingJoinPoint`, or
1320
- `JoinPoint.StaticPart` type, you ca leave out the name of the parameter from the value
1319
+ `JoinPoint.StaticPart` type, you can leave out the name of the parameter from the value
1321
1320
of the `argNames` attribute. For example, if you modify the preceding advice to receive
1322
1321
the join point object, the `argNames` attribute need not include it:
1323
1322
+
@@ -2514,7 +2513,7 @@ simple method executions (for example, field get or set join points and so on).
2514
2513
When you use AspectJ, you have the choice of the AspectJ language syntax (also known as
2515
2514
the "`code style`") or the @AspectJ annotation style. Clearly, if you do not use Java
2516
2515
5+, the choice has been made for you: Use the code style. If aspects play a large
2517
- role in your design, and you are able to use the http ://www.eclipse.org/ajdt/[AspectJ
2516
+ role in your design, and you are able to use the https ://www.eclipse.org/ajdt/[AspectJ
2518
2517
Development Tools (AJDT)] plugin for Eclipse, the AspectJ language syntax is the
2519
2518
preferred option. It is cleaner and simpler because the language was purposefully
2520
2519
designed for writing aspects. If you do not use Eclipse or have only a few aspects
@@ -2946,7 +2945,7 @@ using Spring in accordance with the properties of the annotation`". In this cont
2946
2945
"`initialization`" refers to newly instantiated objects (for example, objects instantiated
2947
2946
with the `new` operator) as well as to `Serializable` objects that are undergoing
2948
2947
deserialization (for example, through
2949
- http ://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html[readResolve()]).
2948
+ https ://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html[readResolve()]).
2950
2949
2951
2950
[NOTE]
2952
2951
=====
@@ -2969,14 +2968,14 @@ available for use in the body of the constructors, you need to define this on th
2969
2968
2970
2969
You can find more information about the language semantics of the various pointcut
2971
2970
types in AspectJ
2972
- http ://www.eclipse.org/aspectj/doc/next/progguide/semantics-joinPoints.html[in this
2973
- appendix] of the http ://www.eclipse.org/aspectj/doc/next/progguide/index.html[AspectJ
2971
+ https ://www.eclipse.org/aspectj/doc/next/progguide/semantics-joinPoints.html[in this
2972
+ appendix] of the https ://www.eclipse.org/aspectj/doc/next/progguide/index.html[AspectJ
2974
2973
Programming Guide].
2975
2974
=====
2976
2975
2977
2976
For this to work, the annotated types must be woven with the AspectJ weaver. You can
2978
2977
either use a build-time Ant or Maven task to do this (see, for example, the
2979
- http ://www.eclipse.org/aspectj/doc/released/devguide/antTasks.html[AspectJ Development
2978
+ https ://www.eclipse.org/aspectj/doc/released/devguide/antTasks.html[AspectJ Development
2980
2979
Environment Guide]) or load-time weaving (see <<aop-aj-ltw>>). The
2981
2980
`AnnotationBeanConfigurerAspect` itself needs to be configured by Spring (in order to obtain
2982
2981
a reference to the bean factory that is to be used to configure new objects). If you
@@ -3202,7 +3201,7 @@ The focus of this section is on configuring and using LTW in the specific contex
3202
3201
Spring Framework. This section is not a general introduction to LTW. For full details on
3203
3202
the specifics of LTW and configuring LTW with only AspectJ (with Spring not being
3204
3203
involved at all), see the
3205
- http ://www.eclipse.org/aspectj/doc/released/devguide/ltw.html[LTW section of the AspectJ
3204
+ https ://www.eclipse.org/aspectj/doc/released/devguide/ltw.html[LTW section of the AspectJ
3206
3205
Development Environment Guide].
3207
3206
3208
3207
The value that the Spring Framework brings to AspectJ LTW is in enabling much
@@ -3549,20 +3548,20 @@ The following table summarizes various `LoadTimeWeaver` implementations:
3549
3548
|===
3550
3549
| Runtime Environment| `LoadTimeWeaver` implementation
3551
3550
3552
- | Running in http ://tomcat.apache.org/[Apache Tomcat]
3551
+ | Running in https ://tomcat.apache.org/[Apache Tomcat]
3553
3552
| `TomcatLoadTimeWeaver`
3554
3553
3555
- | Running in http ://glassfish.dev.java.net/[GlassFish] (limited to EAR deployments)
3554
+ | Running in https ://glassfish.dev.java.net/[GlassFish] (limited to EAR deployments)
3556
3555
| `GlassFishLoadTimeWeaver`
3557
3556
3558
- | Running in Red Hat's http ://www.jboss.org/jbossas/[JBoss AS] or http ://www.wildfly.org/[WildFly]
3557
+ | Running in Red Hat's https ://www.jboss.org/jbossas/[JBoss AS] or https ://www.wildfly.org/[WildFly]
3559
3558
| `JBossLoadTimeWeaver`
3560
3559
3561
- | Running in IBM's http ://www-01.ibm.com/software/webservers/appserv/was/[WebSphere]
3560
+ | Running in IBM's https ://www-01.ibm.com/software/webservers/appserv/was/[WebSphere]
3562
3561
| `WebSphereLoadTimeWeaver`
3563
3562
3564
3563
| Running in Oracle's
3565
- http ://www.oracle.com/technetwork/middleware/weblogic/overview/index-085209.html[WebLogic]
3564
+ https ://www.oracle.com/technetwork/middleware/weblogic/overview/index-085209.html[WebLogic]
3566
3565
| `WebLogicLoadTimeWeaver`
3567
3566
3568
3567
| JVM started with Spring `InstrumentationSavingAgent`
@@ -3718,7 +3717,7 @@ Spring Boot applications, you typically control the entire JVM setup in any case
3718
3717
[[aop-resources]]
3719
3718
== Further Resources
3720
3719
3721
- More information on AspectJ can be found on the http ://www.eclipse.org/aspectj[AspectJ website].
3720
+ More information on AspectJ can be found on the https ://www.eclipse.org/aspectj[AspectJ website].
3722
3721
3723
3722
_Eclipse AspectJ_ by Adrian Colyer et. al. (Addison-Wesley, 2005) provides a
3724
3723
comprehensive introduction and reference for the AspectJ language.
0 commit comments