[ 
https://issues.apache.org/jira/browse/OAK-11601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17935108#comment-17935108
 ] 

Angela Schreiber commented on OAK-11601:
----------------------------------------

[~thomasm], the reason for the deprecation was the modularization effort. 
different bundles in oak should not rely on one specific implementation but 
instead use OSGi references.
if your code still directly uses the factory implementations (except for test 
purpose), you may consider refactoring your code.
hope that helps

> Un-deprecate required parts
> ---------------------------
>
>                 Key: OAK-11601
>                 URL: https://issues.apache.org/jira/browse/OAK-11601
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>            Reporter: Thomas Mueller
>            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 just calls 
> this class as well.
> 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 replacment.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to