I think both approaches have their disadvantages. Using a map requires casting to Strings (we currently have to stick with 1.4, I think) and Properties class exposes methods like store and load which are useless (or even dangerous).

I propose we change the RepositoryService interface and use the two descriptor methods defined in javax.jcr.Repository: getDescriptorKeys() and getDescriptor(). The implementation then can use whatever collection it prefers.

regards
 marcel

Julian Reschke wrote:
Angela Schreiber schrieb:
ja... we discussed that before. the reason is, that repository
descriptors are defined to be key-value String pairs and we
wanted to make that clear.

Well,

I really think that's a bad idea. Please reconsider it (keep in mind that JDK 1.5 will provide typing anyway...). The current design makes it really hard to re-use an existing instance (what if somebody writes to it?)

Best regards, Julian

Reply via email to