Skip to content

Commit 44f4be2

Browse files
committed
Update configuration properties and add banned-methods
Removed empty 'targets' arrays from existing property definitions for clarity. Added a new configuration property 'microsphere.reflect.banned-methods' for specifying banned methods in MethodUtils.
1 parent 1af3240 commit 44f4be2

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

microsphere-java-core/src/main/resources/META-INF/microsphere/configuration-properties.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"sources": [
1010
"system-properties"
1111
],
12-
"targets": [],
1312
"declaredClass": "io.microsphere.classloading.ManifestArtifactResourceResolver",
1413
"declaredField": "ARTIFACT_ID_ATTRIBUTE_NAMES_PROPERTY_NAME"
1514
}
@@ -24,7 +23,6 @@
2423
"sources": [
2524
"system-properties"
2625
],
27-
"targets": [],
2826
"declaredClass": "io.microsphere.classloading.ManifestArtifactResourceResolver",
2927
"declaredField": "VERSION_ATTRIBUTE_NAMES_PROPERTY_NAME"
3028
}
@@ -39,7 +37,6 @@
3937
"sources": [
4038
"system-properties"
4139
],
42-
"targets": [],
4340
"declaredClass": "io.microsphere.io.IOUtils",
4441
"declaredField": "BUFFER_SIZE"
4542
}
@@ -54,7 +51,6 @@
5451
"sources": [
5552
"system-properties"
5653
],
57-
"targets": [],
5854
"declaredClass": "io.microsphere.io.StandardFileWatchService",
5955
"declaredField": "THREAD_NAME_PREFIX"
6056
}
@@ -69,7 +65,6 @@
6965
"sources": [
7066
"system-properties"
7167
],
72-
"targets": [],
7368
"declaredClass": "io.microsphere.reflect.TypeUtils",
7469
"declaredField": "RESOLVED_GENERIC_TYPES_CACHE_SIZE"
7570
}
@@ -84,9 +79,20 @@
8479
"sources": [
8580
"system-properties"
8681
],
87-
"targets": [],
8882
"declaredClass": "io.microsphere.util.ServiceLoaderUtils",
8983
"declaredField": "SERVICE_LOADER_CACHED"
9084
}
85+
},
86+
{
87+
"name": "microsphere.reflect.banned-methods",
88+
"type": "java.lang.String[]",
89+
"required": false,
90+
"metadata": {
91+
"sources": [
92+
"system-properties"
93+
],
94+
"declaredClass": "io.microsphere.reflect.MethodUtils",
95+
"declaredField": "bannedMethodsCache"
96+
}
9197
}
9298
]

0 commit comments

Comments
 (0)