Provide a robust plugin system for integrating new functions into the tservice.
Provide a robust plugin system for integrating new functions into the tservice.
(load-plugins!)
Load TService plugins. The are JARs shipped as part of TService itself, under the resources/modules
directory (the
source for these JARs is under the modules
directory); and others manually added by users to the TService plugins
directory, which defaults to ./plugins
.
When loading plugins, TService performs the following steps:
resources
directory when running with lein
) into the plugins directory.tservice-plugin.yaml
file), a lazy-loading TService plugin
is registered; when the plugin is initialized (automatically, when certain methods are called) the JAR is added
to the classpath and the plugin namespace is loaded
This function will only perform loading steps the first time it is called — it is safe to call this function more
than once.Load TService plugins. The are JARs shipped as part of TService itself, under the `resources/modules` directory (the source for these JARs is under the `modules` directory); and others manually added by users to the TService plugins directory, which defaults to `./plugins`. When loading plugins, TService performs the following steps: * TService creates the plugins directory if it does not already exist. * Any plugins that are shipped as part of TService itself are extracted from the TService uberjar (or `resources` directory when running with `lein`) into the plugins directory. * Each JAR in the plugins directory that *does not* include a TService plugin manifest is added to the classpath. * For JARs that include a TService plugin manifest (a `tservice-plugin.yaml` file), a lazy-loading TService plugin is registered; when the plugin is initialized (automatically, when certain methods are called) the JAR is added to the classpath and the plugin namespace is loaded This function will only perform loading steps the first time it is called — it is safe to call this function more than once.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close