|
110 | 110 | import org.springframework.context.annotation.Configuration;
|
111 | 111 | import org.springframework.context.annotation.Lazy;
|
112 | 112 | import org.springframework.context.annotation.PropertySource;
|
113 |
| -import org.springframework.nativex.hint.AccessBits; |
114 | 113 | import org.springframework.nativex.hint.JdkProxyHint;
|
115 | 114 | import org.springframework.nativex.hint.ResourceHint;
|
| 115 | +import org.springframework.nativex.hint.TypeAccess; |
116 | 116 | import org.springframework.nativex.hint.TypeHint;
|
117 | 117 |
|
118 | 118 | import static org.springdoc.core.Constants.SPRINGDOC_ENABLED;
|
119 | 119 |
|
120 | 120 | @JdkProxyHint(typeNames = "javax.servlet.http.HttpServletRequest")
|
121 |
| -@JdkProxyHint(typeNames = "org.springframework.web.context.request.NativeWebRequest" ) |
| 121 | +@JdkProxyHint(typeNames = "org.springframework.web.context.request.NativeWebRequest") |
122 | 122 |
|
123 | 123 | @JdkProxyHint(typeNames = { "org.springframework.web.bind.annotation.RestController", "org.springframework.core.annotation.SynthesizedAnnotation" })
|
124 | 124 | @JdkProxyHint(typeNames = { "org.springframework.stereotype.Controller", "org.springframework.core.annotation.SynthesizedAnnotation" })
|
|
135 | 135 | @JdkProxyHint(typeNames = { "org.springframework.web.bind.annotation.PatchMapping", "org.springframework.core.annotation.SynthesizedAnnotation" })
|
136 | 136 | @JdkProxyHint(typeNames = { "org.springframework.web.bind.annotation.DeleteMapping", "org.springframework.core.annotation.SynthesizedAnnotation" })
|
137 | 137 | @JdkProxyHint(typeNames = { "org.springframework.web.bind.annotation.ControllerAdvice", "org.springframework.core.annotation.SynthesizedAnnotation" })
|
138 |
| -@JdkProxyHint(typeNames = {"org.springframework.web.bind.annotation.RequestParam", "org.springframework.core.annotation.SynthesizedAnnotation"}) |
139 |
| -@JdkProxyHint(typeNames = {"org.springframework.web.bind.annotation.RequestHeader", "org.springframework.core.annotation.SynthesizedAnnotation"}) |
140 |
| -@JdkProxyHint(typeNames = {"org.springframework.web.bind.annotation.RequestBody", "org.springframework.core.annotation.SynthesizedAnnotation"}) |
141 |
| -@JdkProxyHint(typeNames = {"org.springframework.web.bind.annotation.PathVariable", "org.springframework.core.annotation.SynthesizedAnnotation"}) |
142 |
| -@JdkProxyHint(typeNames = {"org.springframework.web.bind.annotation.ModelAttribute", "org.springframework.core.annotation.SynthesizedAnnotation"}) |
143 |
| -@JdkProxyHint(typeNames = {"org.springframework.stereotype.Controller", "org.springframework.core.annotation.SynthesizedAnnotation"}) |
144 |
| -@JdkProxyHint(typeNames = {"org.springframework.web.bind.annotation.ControllerAdvice", "org.springframework.core.annotation.SynthesizedAnnotation"}) |
| 138 | +@JdkProxyHint(typeNames = { "org.springframework.web.bind.annotation.RequestParam", "org.springframework.core.annotation.SynthesizedAnnotation" }) |
| 139 | +@JdkProxyHint(typeNames = { "org.springframework.web.bind.annotation.RequestHeader", "org.springframework.core.annotation.SynthesizedAnnotation" }) |
| 140 | +@JdkProxyHint(typeNames = { "org.springframework.web.bind.annotation.RequestBody", "org.springframework.core.annotation.SynthesizedAnnotation" }) |
| 141 | +@JdkProxyHint(typeNames = { "org.springframework.web.bind.annotation.PathVariable", "org.springframework.core.annotation.SynthesizedAnnotation" }) |
| 142 | +@JdkProxyHint(typeNames = { "org.springframework.web.bind.annotation.ModelAttribute", "org.springframework.core.annotation.SynthesizedAnnotation" }) |
| 143 | +@JdkProxyHint(typeNames = { "org.springframework.stereotype.Controller", "org.springframework.core.annotation.SynthesizedAnnotation" }) |
| 144 | +@JdkProxyHint(typeNames = { "org.springframework.web.bind.annotation.ControllerAdvice", "org.springframework.core.annotation.SynthesizedAnnotation" }) |
145 | 145 |
|
146 | 146 | @TypeHint(typeNames = { "org.springdoc.core.CacheOrGroupedOpenApiCondition$OnCacheDisabled", "io.swagger.v3.oas.models.parameters.Parameter$StyleEnum",
|
147 |
| - "io.swagger.v3.oas.models.security.SecurityScheme$In" , "io.swagger.v3.oas.models.security.SecurityScheme$Type", |
148 |
| - "org.springdoc.core.CacheOrGroupedOpenApiCondition$OnMultipleOpenApiSupportCondition", "org.springdoc.core.SpringDocConfigProperties$GroupConfig" , |
149 |
| - "org.springdoc.core.SpringDocConfigProperties$Cache" , "org.springdoc.core.SpringDocConfigProperties$GroupConfig" , |
150 |
| - "org.springdoc.core.AbstractSwaggerUiConfigProperties$SwaggerUrl" ,"org.springdoc.core.AbstractSwaggerUiConfigProperties$Direction" , |
151 |
| - "org.springdoc.core.AbstractSwaggerUiConfigProperties$SyntaxHighlight" , "org.springdoc.core.SpringDocConfiguration$1", |
| 147 | + "io.swagger.v3.oas.models.security.SecurityScheme$In", "io.swagger.v3.oas.models.security.SecurityScheme$Type", |
| 148 | + "org.springdoc.core.CacheOrGroupedOpenApiCondition$OnMultipleOpenApiSupportCondition", "org.springdoc.core.SpringDocConfigProperties$GroupConfig", |
| 149 | + "org.springdoc.core.SpringDocConfigProperties$Cache", "org.springdoc.core.SpringDocConfigProperties$GroupConfig", |
| 150 | + "org.springdoc.core.AbstractSwaggerUiConfigProperties$SwaggerUrl", "org.springdoc.core.AbstractSwaggerUiConfigProperties$Direction", |
| 151 | + "org.springdoc.core.AbstractSwaggerUiConfigProperties$SyntaxHighlight", "org.springdoc.core.SpringDocConfiguration$1", |
152 | 152 | "org.springdoc.core.SpringDocConfiguration$OpenApiResourceAdvice", "org.springdoc.core.SpringDocConfiguration$WebConversionServiceConfiguration",
|
153 |
| - "org.springdoc.core.SpringDocConfigProperties$Webjars" , "org.springdoc.core.SpringDocConfigProperties$ApiDocs" }, access = AccessBits.ALL) |
| 153 | + "org.springdoc.core.SpringDocConfigProperties$Webjars", "org.springdoc.core.SpringDocConfigProperties$ApiDocs" }, |
| 154 | + access = { TypeAccess.RESOURCE, TypeAccess.PUBLIC_CLASSES, TypeAccess.DECLARED_CLASSES, TypeAccess.DECLARED_CONSTRUCTORS, TypeAccess.PUBLIC_CONSTRUCTORS, TypeAccess.DECLARED_METHODS, TypeAccess.PUBLIC_METHODS |
| 155 | + , TypeAccess.PUBLIC_FIELDS, TypeAccess.DECLARED_FIELDS }) |
154 | 156 |
|
155 |
| -@TypeHint(types = { Constants.class, ModelConverter.class , ModelConverters.class}, access = AccessBits.ALL) |
| 157 | +@TypeHint(types = { Constants.class, ModelConverter.class, ModelConverters.class }, access = { TypeAccess.RESOURCE, TypeAccess.PUBLIC_CLASSES, TypeAccess.DECLARED_CLASSES, TypeAccess.DECLARED_CONSTRUCTORS, TypeAccess.PUBLIC_CONSTRUCTORS, TypeAccess.DECLARED_METHODS, TypeAccess.PUBLIC_METHODS |
| 158 | + , TypeAccess.PUBLIC_FIELDS, TypeAccess.DECLARED_FIELDS }) |
156 | 159 | @TypeHint(types = { SecurityRequirements.class, SecurityRequirement.class, ApiResponses.class, Callbacks.class, PropertySource.class, ExternalDocumentation.class, Hidden.class,
|
157 | 160 | Operation.class, Parameter.class, Callbacks.class, Extension.class, ExtensionProperty.class, Header.class, Link.class, LinkParameter.class,
|
158 | 161 | ArraySchema.class, Content.class, DiscriminatorMapping.class, Encoding.class, ExampleObject.class, Schema.class, RequestBody.class, ApiResponse.class,
|
159 |
| - Info.class, Server.class, ServerVariable.class, OpenAPIDefinition.class, Tag.class, SecuritySchemes.class, SecurityScheme.class, SecuritySchemeType.class, |
| 162 | + Info.class, Server.class, ServerVariable.class, OpenAPIDefinition.class, Tag.class, SecuritySchemes.class, SecurityScheme.class, SecuritySchemeType.class, |
160 | 163 | OAuthFlow.class, OAuthFlows.class, OAuthScope.class, License.class, Contact.class })
|
161 | 164 |
|
162 | 165 | @TypeHint(types = {
|
|
252 | 255 | io.swagger.v3.oas.models.parameters.Parameter.class,
|
253 | 256 | io.swagger.v3.oas.models.Operation.class,
|
254 | 257 | io.swagger.v3.oas.models.headers.Header.class
|
255 |
| -}, access = AccessBits.ALL ) |
| 258 | +}, access = { TypeAccess.RESOURCE, TypeAccess.PUBLIC_CLASSES, TypeAccess.DECLARED_CLASSES, TypeAccess.DECLARED_CONSTRUCTORS, TypeAccess.PUBLIC_CONSTRUCTORS, TypeAccess.DECLARED_METHODS, TypeAccess.PUBLIC_METHODS |
| 259 | + , TypeAccess.PUBLIC_FIELDS, TypeAccess.DECLARED_FIELDS }) |
256 | 260 |
|
257 | 261 | @ResourceHint(patterns = "sun.util.resources.LocaleNames", isBundle = true)
|
258 | 262 |
|
|
0 commit comments