Visitar URL original
Prioritizing @Singleton & @WebServlet with @Priority · Issue #17 · javaee/javaee-spec · GitHub
Skip to content
This repository was archived by the owner on Jan 30, 2019. It is now read-only.
This repository was archived by the owner on Jan 30, 2019. It is now read-only.

Prioritizing @Singleton & @WebServlet with @Priority #17

Description

@glassfishrobot

Following the thread http://java.net/projects/javaee-spec/lists/users/archive/2012-12/message/17

@priority is used to priorityze interceptors in Java EE 7. It would be interesting to spread this feature to other components in Java EE 8, for example @singleton & @WebServlet.

@Singleton
@Startup
@Priority(100)
public class MyVeryFirstSingleton {}

@Singleton
@Startup
@Priority(4500)
public class MyVeryLastSingleton {}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions