Class Jcr

java.lang.Object
org.apache.jackrabbit.oak.jcr.Jcr

public class Jcr extends Object
Builder class which encapsulates the details of building a JCR Repository backed by an Oak ContentRepository instance

The backing ContentRepository instance will be constructed with reasonable defaults and additional components can be registered by calling the with methods. Note that it is not possible to remove components once registered.

The Jcr builder is a lazy initializer, to have a working repository make sure you call createContentRepository() or createRepository().

  • Field Details

    • DEFAULT_OBSERVATION_QUEUE_LENGTH

      public static final int DEFAULT_OBSERVATION_QUEUE_LENGTH
      See Also:
  • Constructor Details

    • Jcr

      public Jcr(Oak oak, boolean initialize)
    • Jcr

      public Jcr(Oak oak)
    • Jcr

      public Jcr()
    • Jcr

      public Jcr(NodeStore store)
  • Method Details

    • with

      @NotNull public @NotNull Jcr with(@NotNull @NotNull Clusterable c)
    • with

      @NotNull public final @NotNull Jcr with(@NotNull @NotNull RepositoryInitializer initializer)
    • withAtomicCounter

      public Jcr withAtomicCounter()
    • with

      @NotNull public final @NotNull Jcr with(@NotNull @NotNull QueryIndexProvider provider)
    • with

      @NotNull public final @NotNull Jcr with(@NotNull @NotNull IndexEditorProvider indexEditorProvider)
    • with

      @NotNull public final @NotNull Jcr with(@NotNull @NotNull CommitHook hook)
    • with

      @NotNull public final @NotNull Jcr with(@NotNull @NotNull EditorProvider provider)
    • with

      @NotNull public final @NotNull Jcr with(@NotNull @NotNull Editor editor)
    • with

      @NotNull public final @NotNull Jcr with(@NotNull @NotNull SecurityProvider securityProvider)
    • with

      @Deprecated @NotNull public final @NotNull Jcr with(@NotNull @NotNull PartialConflictHandler conflictHandler)
      Deprecated.
    • with

      @NotNull public final @NotNull Jcr with(@NotNull @NotNull ThreeWayConflictHandler conflictHandler)
    • with

      @NotNull public final @NotNull Jcr with(@NotNull @NotNull ScheduledExecutorService executor)
    • with

      @NotNull public final @NotNull Jcr with(@NotNull @NotNull Executor executor)
    • with

      @NotNull public final @NotNull Jcr with(@NotNull @NotNull Observer observer)
    • withAsyncIndexing

      @NotNull @Deprecated public @NotNull Jcr withAsyncIndexing()
      Deprecated.
    • withAsyncIndexing

      @NotNull public @NotNull Jcr withAsyncIndexing(@NotNull @NotNull String name, long delayInSeconds)
    • withObservationQueueLength

      @NotNull public @NotNull Jcr withObservationQueueLength(int observationQueueLength)
    • with

      @NotNull public @NotNull Jcr with(@NotNull @NotNull CommitRateLimiter commitRateLimiter)
    • with

      @NotNull public @NotNull Jcr with(@NotNull @NotNull QueryLimits qs)
    • withFastQueryResultSize

      @NotNull public @NotNull Jcr withFastQueryResultSize(boolean fastQueryResultSize)
    • with

      @NotNull public @NotNull Jcr with(@NotNull @NotNull String defaultWorkspaceName)
    • with

      @NotNull public @NotNull Jcr with(@NotNull @NotNull Whiteboard whiteboard)
    • withoutSessionMBeans

      @NotNull public @NotNull Jcr withoutSessionMBeans()
      Disables registration of SessionMBean for every open Session in the repository. This gets rid of some overhead for cases where MBeans are not leveraged.
      Returns:
      the Jcr object
      Since:
      1.46
    • createContentRepository

      @NotNull public @NotNull ContentRepository createContentRepository()
    • createRepository

      @NotNull public @NotNull Repository createRepository()