Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
14a9ec87
Commit
14a9ec87
authored
Aug 06, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
e4e8311a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
DefaultEndpointObjectNameFactory.java
...figure/endpoint/jmx/DefaultEndpointObjectNameFactory.java
+5
-5
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/jmx/DefaultEndpointObjectNameFactory.java
View file @
14a9ec87
...
@@ -72,14 +72,14 @@ class DefaultEndpointObjectNameFactory implements EndpointObjectNameFactory {
...
@@ -72,14 +72,14 @@ class DefaultEndpointObjectNameFactory implements EndpointObjectNameFactory {
throws
MalformedObjectNameException
{
throws
MalformedObjectNameException
{
StringBuilder
builder
=
new
StringBuilder
(
this
.
properties
.
getDomain
());
StringBuilder
builder
=
new
StringBuilder
(
this
.
properties
.
getDomain
());
builder
.
append
(
":type=Endpoint"
);
builder
.
append
(
":type=Endpoint"
);
builder
.
append
(
",name="
+
StringUtils
.
capitalize
(
endpoint
.
getId
()));
builder
.
append
(
",name="
).
append
(
StringUtils
.
capitalize
(
endpoint
.
getId
()));
String
baseName
=
builder
.
toString
();
String
baseName
=
builder
.
toString
();
if
(
this
.
mBeanServer
!=
null
&&
hasMBean
(
baseName
))
{
if
(
this
.
mBeanServer
!=
null
&&
hasMBean
(
baseName
))
{
builder
.
append
(
",context="
+
this
.
contextId
);
builder
.
append
(
",context="
).
append
(
this
.
contextId
);
}
}
if
(
this
.
uniqueNames
)
{
if
(
this
.
uniqueNames
)
{
String
identity
=
ObjectUtils
.
getIdentityHexString
(
endpoint
);
String
identity
=
ObjectUtils
.
getIdentityHexString
(
endpoint
);
builder
.
append
(
",identity="
+
identity
);
builder
.
append
(
",identity="
).
append
(
identity
);
}
}
builder
.
append
(
getStaticNames
());
builder
.
append
(
getStaticNames
());
return
ObjectNameManager
.
getInstance
(
builder
.
toString
());
return
ObjectNameManager
.
getInstance
(
builder
.
toString
());
...
@@ -95,8 +95,8 @@ class DefaultEndpointObjectNameFactory implements EndpointObjectNameFactory {
...
@@ -95,8 +95,8 @@ class DefaultEndpointObjectNameFactory implements EndpointObjectNameFactory {
return
""
;
return
""
;
}
}
StringBuilder
builder
=
new
StringBuilder
();
StringBuilder
builder
=
new
StringBuilder
();
this
.
properties
.
getStaticNames
()
this
.
properties
.
getStaticNames
()
.
forEach
((
name
,
value
)
->
builder
.
append
(
","
)
.
forEach
((
name
,
value
)
->
builder
.
append
(
","
+
name
+
"="
+
value
));
.
append
(
name
).
append
(
"="
).
append
(
value
));
return
builder
.
toString
();
return
builder
.
toString
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment