According to JackRabbit Oak official documentation, one of the ways of creating Repository instance is to create a MicroKernel object and pass it to JCR's parameterized constructor like this:
MicroKernel kernel = ...;
Repository repository = new Jcr(kernel).createRepository();
But looking at the JCR class javadocs, i can't find any constructor which takes an object of type MicroKernel.
So my questions is :
- How can we get a repository object using
MicroKernelin JackRabbit Oak(not JackRabbit 2.0).
Note: I want a repository which uses normal file system as the content storage medium.
Try to use the
MicroKernelImplpublic no-arg constructor to create an in-memory kernel instance:Alternativelly, you can use the
OAKclass entry to create aRepository: