Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Use Flag renamed to TypeAccess instead of AccessBits in @TypeHint #1317

Closed
sdeleuze opened this issue Nov 30, 2021 · 0 comments
Closed

Use Flag renamed to TypeAccess instead of AccessBits in @TypeHint #1317

sdeleuze opened this issue Nov 30, 2021 · 0 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@sdeleuze
Copy link
Contributor

sdeleuze commented Nov 30, 2021

Replace int access() default 0; by TypeAccess[] access() default TypeAccess.AUTO_DETECT; in order to have a more strongly typed API, benefits from autocomplete and be consistent with NativeConfigurationRegistry. So in term of use case, that would transform @TypeHint(access = AccessBits.DECLARED_CONSTRUCTORS | AccessBits.DECLARED_METHODS) to @TypeHint(flags = { TypeAccess.DECLARED_CONSTRUCTORS, TypeAccess.DECLARED_METHODS }).

@sdeleuze sdeleuze added the type: enhancement A general enhancement label Nov 30, 2021
@sdeleuze sdeleuze added this to the 0.11.0 milestone Nov 30, 2021
@sdeleuze sdeleuze self-assigned this Nov 30, 2021
sdeleuze added a commit to sdeleuze/spring-native that referenced this issue Dec 1, 2021
In order to have a more strongly typed API, benefit from
autocomplete and be consistent with NativeConfigurationRegistry.

See spring-atticgh-1317
sdeleuze added a commit to sdeleuze/spring-native that referenced this issue Dec 1, 2021
sdeleuze added a commit to sdeleuze/spring-native that referenced this issue Dec 1, 2021
sdeleuze added a commit that referenced this issue Dec 1, 2021
In order to have a more strongly typed API, benefit from
autocomplete and be consistent with NativeConfigurationRegistry.

See gh-1317
@sdeleuze sdeleuze changed the title Use Flag instead of AccessBits in @TypeHint Use Flag renamed to TypeAccess instead of AccessBits in @TypeHint Dec 1, 2021
sdeleuze added a commit that referenced this issue Dec 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement A general enhancement
Development

No branches or pull requests

1 participant