@@ -154,7 +154,6 @@ Java::
154
154
----
155
155
package com.xyz;
156
156
157
- @Aspect
158
157
public class Pointcuts {
159
158
160
159
@Pointcut("execution(public * *(..))")
@@ -179,7 +178,6 @@ Kotlin::
179
178
----
180
179
package com.xyz
181
180
182
- @Aspect
183
181
class Pointcuts {
184
182
185
183
@Pointcut("execution(public * *(..))")
@@ -211,9 +209,9 @@ pointcut matching.
211
209
212
210
When working with enterprise applications, developers often have the need to refer to
213
211
modules of the application and particular sets of operations from within several aspects.
214
- We recommend defining a dedicated aspect that captures commonly used _named pointcut_
215
- expressions for this purpose. Such an aspect typically resembles the following
216
- `CommonPointcuts` example (though what you name the aspect is up to you):
212
+ We recommend defining a dedicated class that captures commonly used _named pointcut_
213
+ expressions for this purpose. Such a class typically resembles the following
214
+ `CommonPointcuts` example (though what you name the class is up to you):
217
215
218
216
[tabs]
219
217
======
@@ -223,10 +221,8 @@ Java::
223
221
----
224
222
package com.xyz;
225
223
226
- import org.aspectj.lang.annotation.Aspect;
227
224
import org.aspectj.lang.annotation.Pointcut;
228
225
229
- @Aspect
230
226
public class CommonPointcuts {
231
227
232
228
/**
@@ -287,10 +283,8 @@ Kotlin::
287
283
----
288
284
package com.xyz
289
285
290
- import org.aspectj.lang.annotation.Aspect
291
286
import org.aspectj.lang.annotation.Pointcut
292
287
293
- @Aspect
294
288
class CommonPointcuts {
295
289
296
290
/**
@@ -346,9 +340,9 @@ Kotlin::
346
340
----
347
341
======
348
342
349
- You can refer to the pointcuts defined in such an aspect anywhere you need a pointcut
350
- expression by referencing the fully-qualified name of the `@Aspect` class combined with
351
- the `@Pointcut` method's name. For example, to make the service layer transactional, you
343
+ You can refer to the pointcuts defined in such a class anywhere you need a pointcut
344
+ expression by referencing the fully-qualified name of the class combined with the
345
+ `@Pointcut` method's name. For example, to make the service layer transactional, you
352
346
could write the following which references the
353
347
`com.xyz.CommonPointcuts.businessService()` _named pointcut_:
354
348
0 commit comments