You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,3 +7,14 @@ the [MarkLogic Java Client API](http://docs.marklogic.com/guide/java). Those fea
7
7
- Support for automatically loading a new/modified module using the REST API
8
8
- Basic integration with Spring via a Spring FactoryBean
9
9
10
+
This is a lower-level library that is primarily used via [ml-app-deployer](https://github.com/rjrudin/ml-app-deployer) and [ml-gradle](https://github.com/rjrudin/ml-gradle) and [ml-junit](https://github.com/rjrudin/ml-junit). But you can use it by itself too.
11
+
12
+
Here's a sample of loading modules - though it's best to look at the aforementioned projects to see all the ways this can be done:
13
+
14
+
DatabaseClient client = DatabaseClientFactory.newClient(...); // Use the ML Java Client API
15
+
RestApiAssetLoader assetLoader = new RestApiAssetLoader(client); // Can use XCC or the REST API to load asset modules
16
+
DefaultModulesLoader modulesLoader = new DefaultModulesLoader(assetLoader);
17
+
File modulesDir = new File("src/main/ml-modules");
18
+
ModulesFinder modulesFinder = new DefaultModulesFinder(); // Allows for adjusting where modules are stored on a filesystem
0 commit comments