Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to control init order of custom annotated components #992

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

ZakarFin
Copy link
Member

This in itself seems to fix issues of OskariComponents initializing in an order that causes errors when the code is compiled with Java 11. The problem was not at compile time but at runtime/startup. It also allows us to define the order in which the components are initialized if we need to. Like MapLayerService component might need to be initialized before some component that uses the service.

Usage (when needed, order defaults to max int and looks like everything works currently on Java 11):

@Oskari(order = 1000)
@OskariActionRoute(value="LayerAdmin", order=1500)

@ZakarFin ZakarFin added this to the 2.12.0 milestone Aug 21, 2023
@ZakarFin ZakarFin merged commit 25d3906 into oskariorg:develop Aug 21, 2023
@ZakarFin ZakarFin deleted the java11 branch August 21, 2023 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant