Skip to content

Add ContextInitialized interface for Dev Mode only #23169

@abdullahtellioglu

Description

@abdullahtellioglu

Describe your motivation

In Copilot, certain operations need to be performed when the servlet is initialized, such as collecting classes, analyzing source code usage, etc... To do that, the best candidate method that Copilot could use is handleConnect from DevToolsMessageHandler with a loaded flag, because handleConnect is executed any time a browser tab opens.

Describe the solution you'd like

It would be better if there were an interface that Copilot could use when the servlet is initialized. The method should run only in DEV mode, so it should not affect the production build.

Describe alternatives you've considered

I do not have any solutions to propose

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Maybe

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions