Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
broken-petclinic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
s61200
broken-petclinic
Commits
fa1e1a8f
Commit
fa1e1a8f
authored
12 years ago
by
Mic
Browse files
Options
Downloads
Patches
Plain Diff
isEnabled -> enabled
parent
d58d6176
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/springframework/samples/petclinic/util/CallMonitoringAspect.java
+4
-4
4 additions, 4 deletions
...ramework/samples/petclinic/util/CallMonitoringAspect.java
with
4 additions
and
4 deletions
src/main/java/org/springframework/samples/petclinic/util/CallMonitoringAspect.java
+
4
−
4
View file @
fa1e1a8f
...
...
@@ -36,7 +36,7 @@ import org.springframework.util.StopWatch;
@Aspect
public
class
CallMonitoringAspect
{
private
boolean
isE
nabled
=
true
;
private
boolean
e
nabled
=
true
;
private
int
callCount
=
0
;
...
...
@@ -45,12 +45,12 @@ public class CallMonitoringAspect {
@ManagedAttribute
public
void
setEnabled
(
boolean
enabled
)
{
isE
nabled
=
enabled
;
this
.
e
nabled
=
enabled
;
}
@ManagedAttribute
public
boolean
isEnabled
()
{
return
isE
nabled
;
return
e
nabled
;
}
@ManagedOperation
...
...
@@ -72,7 +72,7 @@ public class CallMonitoringAspect {
@Around
(
"within(@org.springframework.stereotype.Repository *)"
)
public
Object
invoke
(
ProceedingJoinPoint
joinPoint
)
throws
Throwable
{
if
(
this
.
isE
nabled
)
{
if
(
this
.
e
nabled
)
{
StopWatch
sw
=
new
StopWatch
(
joinPoint
.
toShortString
());
sw
.
start
(
"invoke"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment