[ https://issues.apache.org/jira/browse/OAK-11601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17935207#comment-17935207 ]
Manfred Baedke edited comment on OAK-11601 at 3/13/25 1:44 PM: --------------------------------------------------------------- [~angela], what are we supposed to use if there is no OSGi environment? was (Author: baedke): [~angela] , what are we supposed to use if there is no OSGi environment? > Provide a better alternative for the deprecated RootProvider, or un-deprecate > ----------------------------------------------------------------------------- > > Key: OAK-11601 > URL: https://issues.apache.org/jira/browse/OAK-11601 > Project: Jackrabbit Oak > Issue Type: Improvement > Reporter: Thomas Mueller > Assignee: Angela Schreiber > Priority: Major > > oak-core: > {noformat} > package org.apache.jackrabbit.oak.plugins.tree.factories; > /** > * Factory to obtain immutable {@code Root} objects. > * > * @deprecated Please use {@code RootProvider} instead > */ > public final class RootFactory { > {noformat} > But RootProvider is an interface, and the only(?) implementation > (RootProviderService) just calls this class as well. And we would have to > first create a new instance. > This was deprecated in OAK-7015 but I don't see why exactly, and what would > be the real replacement. > TreeFactory seems similar. > Both RootFactory and TreeFactory are widely used. It seems before we > deprecate things, we should have a good replacement. Replacements that just > call the deprecated method don't seem useful. -- This message was sent by Atlassian Jira (v8.20.10#820010)