Class DefaultNativeReflectionEntry.Builder
- java.lang.Object
-
- org.springframework.aot.context.bootstrap.generator.infrastructure.nativex.NativeReflectionEntry.Builder<DefaultNativeReflectionEntry.Builder,DefaultNativeReflectionEntry>
-
- org.springframework.aot.context.bootstrap.generator.infrastructure.nativex.DefaultNativeReflectionEntry.Builder
-
- Enclosing class:
- DefaultNativeReflectionEntry
public static class DefaultNativeReflectionEntry.Builder extends NativeReflectionEntry.Builder<DefaultNativeReflectionEntry.Builder,DefaultNativeReflectionEntry>
-
-
Field Summary
-
Fields inherited from class org.springframework.aot.context.bootstrap.generator.infrastructure.nativex.NativeReflectionEntry.Builder
conditionalOnTypeReachable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultNativeReflectionEntry
build()
Create aDefaultNativeReflectionEntry
from the state of this builderDefaultNativeReflectionEntry.Builder
conditionalOnTypeReachable(java.lang.Class<?> conditionalOnTypeReachable)
Makes this entry conditional to provided type.DefaultNativeReflectionEntry.Builder
withExecutables(java.lang.reflect.Executable... executables)
Add the specifiedmethods or constructors
.DefaultNativeReflectionEntry.Builder
withField(java.lang.reflect.Field field, DefaultNativeReflectionEntry.FieldAccess... access)
DefaultNativeReflectionEntry.Builder
withFields(java.lang.reflect.Field... fields)
Add the specifiedfields
.DefaultNativeReflectionEntry.Builder
withQueriedExecutables(java.lang.reflect.Executable... executables)
Add the specifiedmethods or constructors
for metadata query access only.-
Methods inherited from class org.springframework.aot.context.bootstrap.generator.infrastructure.nativex.NativeReflectionEntry.Builder
self, withAccess
-
-
-
-
Method Detail
-
conditionalOnTypeReachable
public DefaultNativeReflectionEntry.Builder conditionalOnTypeReachable(java.lang.Class<?> conditionalOnTypeReachable)
Makes this entry conditional to provided type.- Parameters:
conditionalOnTypeReachable
- The type which should make this entry taken in account.- Returns:
- this for method chaining
-
withExecutables
public DefaultNativeReflectionEntry.Builder withExecutables(java.lang.reflect.Executable... executables)
Add the specifiedmethods or constructors
.- Parameters:
executables
- the executables to add- Returns:
- this for method chaining
-
withQueriedExecutables
public DefaultNativeReflectionEntry.Builder withQueriedExecutables(java.lang.reflect.Executable... executables)
Add the specifiedmethods or constructors
for metadata query access only.- Parameters:
executables
- the executables to add- Returns:
- this for method chaining
-
withFields
public DefaultNativeReflectionEntry.Builder withFields(java.lang.reflect.Field... fields)
Add the specifiedfields
.- Parameters:
fields
- the fields to add- Returns:
- this for method chaining
-
withField
public DefaultNativeReflectionEntry.Builder withField(java.lang.reflect.Field field, DefaultNativeReflectionEntry.FieldAccess... access)
-
build
public DefaultNativeReflectionEntry build()
Create aDefaultNativeReflectionEntry
from the state of this builder- Returns:
- a new entry
-
-