Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [config-dev] Tree structure vs flat structure discussion thread

Just to clarify this tree vs. flat discussion. This is purely a representation of configurations on the surface. All properties are stored in a flat fashion. There is no right nor wrong. It is just a personal taste. My personal suggestion is to enable both while keeping the config.getValue(string propertyName, T type), the flat representation while allowing for tree presentation. What Mark mentioned in his thread is another issue to be solved down the line: dynamism. 


On Fri, Dec 10, 2021 at 2:37 PM Reza Rahman <reza_rahman@xxxxxxxxx> wrote:
Definitely feeling a bit lost here. Why is a JNDI like tree concept needed? To retrieve stored objects rather than just strings? Dealing with the concepts of collections/arrays/containers? If so, adopting some string based syntax like [x] does not help?


From: config-dev <config-dev-bounces@xxxxxxxxxxx> on behalf of Steve Millidge (Payara) <steve.millidge@xxxxxxxxxxx>
Sent: Friday, December 10, 2021 4:58 AM
To: Jakarta Config project developer discussions
Subject: Re: [config-dev] Tree structure vs flat structure discussion thread
 

I am in favour of a tree structure.

 

Probably an unfashionable view but there is a danger that you just reimplement the javax.naming api, without mutability, when all required functionality for tree walking etc is added.

 

Steve

 

From: config-dev <config-dev-bounces@xxxxxxxxxxx> On Behalf Of Dmitry Kornilov
Sent: 09 December 2021 19:42
To: Jakarta Config project developer discussions <config-dev@xxxxxxxxxxx>
Subject: [config-dev] Tree structure vs flat structure discussion thread

 

Hi,

 

As we discussed on the meeting today, I am going to create two email threads: one for the subj discussion (this thread) and another one for voting (I’ll do it later). The rule is simple: discuss the subj here and use voting thread only for voting.

 

To initiate the discussion:

 

Here is a link to Tomas’ PR for tree structure: https://github.com/eclipse-ee4j/config/pull/22

Here is my private gist with some thoughts:  https://gist.github.com/m0mus/1bf0a3f76e3492fa764263b4b180a50a

 

Thanks,

Dmitry

 

P.S.

Creating the voting thread now…

_______________________________________________
config-dev mailing list
config-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://accounts.eclipse.org


--
Thanks
Emily


Back to the top