Skip to content

Commit 22576c5

Browse files
committed
Implement optimized hooks
1 parent 236907c commit 22576c5

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

src/MethodProxiesExamples/MpCountingHandler.class.st

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ Class {
1111
#package : 'MethodProxiesExamples'
1212
}
1313

14+
{ #category : 'evaluating' }
15+
MpCountingHandler >> beforeExecutionWithReceiver: anObject [
16+
17+
self count: self count + 1
18+
]
19+
1420
{ #category : 'evaluating' }
1521
MpCountingHandler >> beforeExecutionWithReceiver: anObject arguments: anArrayOfObjects [
1622

src/MethodProxiesExamples/MpEmptyHandlerAfter.class.st

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,23 @@ MpEmptyHandlerAfter >> afterExecutionWithReceiver: anObject arguments: anArrayOf
1616

1717
^ retVal
1818
]
19+
20+
{ #category : 'evaluating' }
21+
MpEmptyHandlerAfter >> afterExecutionWithReceiver: anObject returnValue: retVal [
22+
23+
^ retVal
24+
]
25+
26+
{ #category : 'evaluating' }
27+
MpEmptyHandlerAfter >> afterExecutionWithReceiver: anObject with: arg returnValue: retVal [
28+
29+
^ retVal
30+
]
31+
32+
{ #category : 'evaluating' }
33+
MpEmptyHandlerAfter >> beforeExecutionWithReceiver: anObject [
34+
]
35+
36+
{ #category : 'evaluating' }
37+
MpEmptyHandlerAfter >> beforeExecutionWithReceiver: anObject with: arg [
38+
]

0 commit comments

Comments
 (0)