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

  • Home
  • SEARCH
  • 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 8958041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:07:57+00:00 2026-06-15T15:07:57+00:00

now this is not directly a programming question, it’s more a design question. I

  • 0

now this is not directly a programming question, it’s more a design question.

I am currently working on a cdi extension. this extension handles instances configured by

  1. a VM argument (-D parameter)
  2. a properties file from the classpath
  3. an annotation on the implementing class
  4. an annotation at injection point (e.g. @MyAnnotation(value =”text”) private Object obj;)

Now I can’t decide on how to prioritize multiple available configurations e.g. which argument overrides which one..

(as an example)
when there is an annotation with value on classlevel and at injection point, which config should be used? does the “smallest” (at injection point) annotation always win or the “largest” (vm argument)?

as this is supposed to grow into a framework i want to get this right.

for the approach “the smallest one always wins” i could foresee use cases where the framework user gets confused because a class- or memberlevel annotation overrides the config of a properties file in the classpath. kinda the same picture (only reversed) is painted by the other approach..

so this would be a rule which the framework user has to learn. which of the approaches is more intuitive?

just brainstorming 😉

greetings from germany

  • 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-06-15T15:07:58+00:00Added an answer on June 15, 2026 at 3:07 pm

    In DeltaSpike, and also CDI 1.1 (possibly more general in Java EE 7) the lowest number wins, at least from that standpoint it will be consistent.

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

Sidebar

Related Questions

I asked this question to multiple people and until now I do not have
Despite working on EE for about 3 weeks now, believe it or not, this
This is not as much a programming question, as it is a configuration thing.
I'm having this crash now and then, in a thread that is not started
In Python I have this code: now = datetime.now().isoformat() if . not in now:
Now I'm not sure if this is something I'm doing wrong, or something thats
I am not sure how to go about this. Right now I am counting
I used this tutorial. Now I want to fadeOut when the mouse is not
i use this method before 1 time. but Now i can not get video
newthing = Link(user=request.user,last_updated=datetime.datetime.now()) However, this uses datetime , not the MYSQL now(). How can

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.