Skip to content

Change default SCL instance, and allow selecting from service loader #10103

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

niloc132
Copy link
Member

The default is now to ask a service loader for a ServletContainerLauncher if there is a single entry available, and failing that to use the static server - no servlets will be available.

ServletContainerLaunchers registered as a provider for the service loader must provide a name that matches a specific regex. Those names may now also be used when specifying a particular server name rather than the fully qualified class name.

The JettyLauncher will be kept for at least another version to ensure that projects can easily migrate to newer versions.

Fixes #10057

The default is now to ask a service loader for a
ServletContainerLauncher if there is a single entry available, and
failing that to use the static server - no servlets will be available.

ServletContainerLaunchers registered as a provider for the service
loader must provide a name that matches a specific regex. Those names
may now also be used when specifying a particular server name rather
than the fully qualified class name.

The JettyLauncher will be kept for at least another version to ensure
that projects can easily migrate to newer versions.

This patch also moves `setBaseRequestLogLevel` to
ServletContainerLauncher so other implementations can use it to log
appropriately based on how they were started.

Fixes gwtproject#10057
@niloc132 niloc132 added this to the 2.13 milestone Feb 27, 2025
@eliasbalasis
Copy link

I am aligned with this approach, particularly in relation to the custom launchers project at https://bitbucket.org/upperlimit-public/gwt-devmode-server of which I am the owner and I will make the relevant adjustments.

@eliasbalasis
Copy link

eliasbalasis commented Feb 27, 2025

Should we allow hyphens as well as underscores in the launcher name ? or perhaps only hyphens ?
What do you think?

@niloc132
Copy link
Member Author

Should we allow hyphens as well as underscores in the launcher name ? or perhaps only hyphens ? What do you think?

Sure - I kept the regex simple, just what things are allowed for 99% of class names. I mostly don't want to encourage named types, which could be referenced from command line, to include characters that need to be escaped when used from the command lie ( , *, etc).

@eliasbalasis
Copy link

Thanks @niloc132 , this makes sense, I will name my launchers accordingly.

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.

Change default dev mode server to static implementation
2 participants