xwiki/xwiki-platform — comment on commit cea424914f40ce924afbc49b3159bc8934251aac
File: xwiki-platform-core/xwiki-platform-model/src/main/java/org/xwiki/model/reference/DocumentReference.java line 142
By dgervalle:

Do you means that:
- you want to expose parameters keys
- you want a constructor like public DocumentReference(String wikiName, List spaceNames, String pageName, Map params)

This is for me the opposite of your original proposal (before immutable refs) that state you want a helper methode on Document refs to setLocale.
What I propose is to have many overloaded constructors and strongly typed arguments.
We may eventually to something like
public DocumentReference(String wikiName, List spaceNames, String pageName, Object... parameters)
where parameters would be of type Locale, Version,... and have a static Map that link Locale type to the "LOCALE" key and do a setParameter appropriatly.
WDYT ?