Skip to content

Expose ServiceLocator from JerseyHandlerFilter #132

@Limess

Description

@Limess
  • Framework version: 1.0.0
  • Implementations: Jersey

Scenario

I wish to access the org.glassfish.hk2.api.ServiceLocator instance from the JerseyHandlerFilter object, this is so I can eagerly instantiate services in response to a scheduled warm up event (e.g. via https://github.com/FidelLimited/serverless-plugin-warmup).

Example

This stackoverflow answer provides an example of expected access using a ContainerLifecycleListener, although I believe if jersey is exposed from JerseyHandlerFilter this would be accessible from RequestStreamHandler.handleRequest.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions