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
4b7c6f61
Commit
4b7c6f61
authored
Dec 08, 2014
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
f0bc3c08
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
EndpointMBeanExportAutoConfiguration.java
...e/autoconfigure/EndpointMBeanExportAutoConfiguration.java
+0
-3
ConfigurationMetadataAnnotationProcessor.java
...onprocessor/ConfigurationMetadataAnnotationProcessor.java
+2
-2
TypeExcludeFilter.java
...mework/boot/configurationprocessor/TypeExcludeFilter.java
+2
-2
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointMBeanExportAutoConfiguration.java
View file @
4b7c6f61
...
...
@@ -53,16 +53,13 @@ public class EndpointMBeanExportAutoConfiguration {
@Bean
public
EndpointMBeanExporter
endpointMBeanExporter
(
MBeanServer
server
)
{
EndpointMBeanExporter
mbeanExporter
=
new
EndpointMBeanExporter
();
String
domain
=
this
.
properties
.
getDomain
();
if
(
StringUtils
.
hasText
(
domain
))
{
mbeanExporter
.
setDomain
(
domain
);
}
mbeanExporter
.
setServer
(
server
);
mbeanExporter
.
setEnsureUniqueRuntimeObjectNames
(
this
.
properties
.
isUniqueNames
());
mbeanExporter
.
setObjectNameStaticProperties
(
this
.
properties
.
getStaticNames
());
return
mbeanExporter
;
}
...
...
spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/ConfigurationMetadataAnnotationProcessor.java
View file @
4b7c6f61
...
...
@@ -75,7 +75,7 @@ public class ConfigurationMetadataAnnotationProcessor extends AbstractProcessor
private
FieldValuesParser
fieldValuesParser
;
private
ElementExcludeFilter
elementExcludeFilter
=
new
Element
ExcludeFilter
();
private
TypeExcludeFilter
typeExcludeFilter
=
new
Type
ExcludeFilter
();
protected
String
configurationPropertiesAnnotation
()
{
return
CONFIGURATION_PROPERTIES_ANNOTATION
;
...
...
@@ -179,7 +179,7 @@ public class ConfigurationMetadataAnnotationProcessor extends AbstractProcessor
VariableElement
field
=
members
.
getFields
().
get
(
name
);
Element
returnType
=
this
.
processingEnv
.
getTypeUtils
().
asElement
(
getter
.
getReturnType
());
boolean
isExcluded
=
this
.
element
ExcludeFilter
.
isExcluded
(
getter
boolean
isExcluded
=
this
.
type
ExcludeFilter
.
isExcluded
(
getter
.
getReturnType
());
boolean
isNested
=
isNested
(
returnType
,
field
,
element
);
boolean
isCollection
=
this
.
typeUtils
.
isCollectionOrMap
(
getter
...
...
spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/
Element
ExcludeFilter.java
→
spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/
Type
ExcludeFilter.java
View file @
4b7c6f61
...
...
@@ -27,11 +27,11 @@ import javax.lang.model.type.TypeMirror;
* @author Stephane Nicoll
* @since 1.2.0
*/
class
Element
ExcludeFilter
{
class
Type
ExcludeFilter
{
private
final
Set
<
String
>
excludes
=
new
HashSet
<
String
>();
public
Element
ExcludeFilter
()
{
public
Type
ExcludeFilter
()
{
add
(
"java.io.Writer"
);
add
(
"java.io.PrintWriter"
);
add
(
"java.lang.ClassLoader"
);
...
...
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