move some doc apis to core API layer

This commit is contained in:
Jonathan Shook 2022-01-10 22:24:33 -06:00
parent 6e1790057d
commit c27630e5a6
16 changed files with 22 additions and 15 deletions

View File

@ -1,7 +1,7 @@
package io.nosqlbench.docsys;
import io.nosqlbench.docsys.api.Docs;
import io.nosqlbench.docsys.api.DocsBinder;
import io.nosqlbench.docapi.Docs;
import io.nosqlbench.docapi.DocsBinder;
import io.nosqlbench.docsys.api.DocsysStaticManifest;
//@Service(DocsysStaticManifest.class)

View File

@ -1,5 +1,6 @@
package io.nosqlbench.docsys.api;
import io.nosqlbench.docapi.DocsBinder;
import io.nosqlbench.docsys.endpoints.DocsysMarkdownEndpoint;
/**

View File

@ -1,5 +1,7 @@
package io.nosqlbench.docsys.api;
import io.nosqlbench.docapi.DocsBinder;
/**
* At runtime, any instances of this service will be used to find
* paths to be hosted as static content.

View File

@ -1,6 +1,8 @@
package io.nosqlbench.docsys.core;
import io.nosqlbench.docsys.api.*;
import io.nosqlbench.docapi.*;
import io.nosqlbench.docsys.api.DocsysDynamicManifest;
import io.nosqlbench.docsys.api.DocsysStaticManifest;
import java.util.ServiceLoader;
@ -29,4 +31,6 @@ public class DocsysPathLoader {
}
return docs;
}
}

View File

@ -1,7 +1,7 @@
package io.nosqlbench.docsys.core;
import io.nosqlbench.docsys.DocsysDefaultAppPath;
import io.nosqlbench.docsys.api.Docs;
import io.nosqlbench.docapi.Docs;
import io.nosqlbench.docsys.api.WebServiceObject;
import io.nosqlbench.docsys.handlers.FavIconHandler;
import io.nosqlbench.nb.annotations.Maturity;

View File

@ -1,8 +1,8 @@
package io.nosqlbench.docsys.endpoints;
import io.nosqlbench.docsys.api.Docs;
import io.nosqlbench.docsys.api.DocsBinder;
import io.nosqlbench.docsys.api.DocsNameSpace;
import io.nosqlbench.docapi.Docs;
import io.nosqlbench.docapi.DocsBinder;
import io.nosqlbench.docapi.DocsNameSpace;
import io.nosqlbench.docsys.api.WebServiceObject;
import io.nosqlbench.docsys.core.DocsysPathLoader;
import io.nosqlbench.docsys.core.PathWalker;

View File

@ -1,7 +1,7 @@
package io.nosqlbench.engine.docs;
import io.nosqlbench.docsys.api.Docs;
import io.nosqlbench.docsys.api.DocsBinder;
import io.nosqlbench.docapi.Docs;
import io.nosqlbench.docapi.DocsBinder;
import io.nosqlbench.docsys.api.DocsysDynamicManifest;
import io.nosqlbench.nb.annotations.Service;

View File

@ -1,4 +1,4 @@
package io.nosqlbench.docsys.api;
package io.nosqlbench.docapi;
import java.nio.file.Path;
import java.util.List;

View File

@ -1,4 +1,4 @@
package io.nosqlbench.docsys.api;
package io.nosqlbench.docapi;
import java.nio.file.Path;
import java.util.List;

View File

@ -1,4 +1,4 @@
package io.nosqlbench.docsys.api;
package io.nosqlbench.docapi;
import java.nio.file.Path;
import java.util.*;
@ -42,7 +42,7 @@ public class DocsNameSpaceImpl implements DocsNameSpace {
public String toString() {
return "DocPath{" +
"namespace='" + namespace + '\'' +
",paths=" + paths.toString() +
",paths=" + paths +
'}';
}

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -1,7 +1,7 @@
package io.nosqlbench.virtdata.userlibs.docinfo;
import io.nosqlbench.docsys.api.Docs;
import io.nosqlbench.docsys.api.DocsBinder;
import io.nosqlbench.docapi.Docs;
import io.nosqlbench.docapi.DocsBinder;
import io.nosqlbench.docsys.api.DocsysDynamicManifest;
import io.nosqlbench.nb.annotations.Service;