Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1024343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:45:54+00:00 2026-05-16T11:45:54+00:00

JSR-330 dependency injection can be applied to both Java SE and Java EE environments,

  • 0

JSR-330 dependency injection can be applied to both Java SE and Java EE environments, while JSR-299 is titled “Contexts and Dependency Injection for the Java EE platform”.

Except strictly Java EE-oriented features, what CDI features make sense on Java SE as well? Any examples available? Thanks!

[Revised]
Here’s Weld on JSE.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T11:45:54+00:00Added an answer on May 16, 2026 at 11:45 am

    Except strictly Java EE-oriented features, what CDI features make sense on Java SE as well? Any examples available? Thanks!

    Well, the one mentioned in the Weld documentation:

    18.4. Java SE

    In addition to improved integration of
    the Enterprise Java stack, the
    “Contexts and Dependency Injection for
    the Java EE platform” specification
    also defines a state of the art
    typesafe, stateful dependency
    injection framework, which can prove
    useful in a wide range of application
    types. To help developers take
    advantage of this, Weld provides a
    simple means for being executed in the
    Java Standard Edition (SE) environment
    independently of any Java EE APIs.

    When executing in the SE environment
    the following features of Weld are
    available:

    • Managed beans with @PostConstruct and @PreDestroy lifecycle callbacks
    • Dependency injection with qualifiers and alternatives
    • @Application, @Dependent and @Singleton scopes
    • Interceptors and decorators
    • Stereotypes
    • Events

    This obviously makes sense in a Java SE context.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've started using Spring 3 Java Config with the JSR-330 @Inject annotations. Unlike the
How can I use JSR-299 CDI to inject (not annotated) beans from external libraries?
In JSR 294 the superpackage feature for Java is specified. It should debut in
The SVN version of Guice supports JSR-330 annotations (JSR-330 Integration - This documents an
JSR-299 (CDI) introduces the (unfortunately named) concept of a resource: http://docs.jboss.org/weld/reference/1.0.0/en-US/html/resources.html#d0e4373 You can think
In Java Bean Validation (JSR 303), is there a way to programmatically (dynamically) add
I am reading through the Public Review Draft of the Web Beans specification (JSR-299)
Studying JSR-299, I read section 5.1 of the Weld reference which explains how scopes
With JSR 311 and its implementations we have a powerful standard for exposing Java
I am writing a JSR-168 portlet that can be added to a container multiple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.