Package io.deephaven.server.plugin.js
Class JsPluginNpmPackageRegistration
java.lang.Object
io.deephaven.server.plugin.js.JsPluginNpmPackageRegistration
- All Implemented Interfaces:
io.deephaven.plugin.Registration
public final class JsPluginNpmPackageRegistration
extends Object
implements io.deephaven.plugin.Registration
Registers the
JS plugins sourced from the NPM package roots as specified via the configuration
properties that start with "deephaven.jsPlugins.". This
configuration is meant for development-oriented use-cases and is done on a "best-effort" basis.
The configuration value of the above property corresponds to the JsPlugin.path() directory. A
"package.json" must exist in this directory (as specified via
package-json). The "name" json value
corresponds to JsPlugin.name(), the "version" json value corresponds to JsPlugin.version(),
and the "main" json value corresponds to JsPlugin.main(). Furthermore, the top-level directory of the
"main" json value will be used to set JsPlugin.paths() using
Paths.ofPrefixes(Path); for example, a "main" of "build/index.js" will limit
the resources to the "build/" directory; a "main" of "dist/bundle/index.js" will limit the resources to the
"dist/" directory.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBindsJsPluginNpmPackageRegistrationinto the set ofRegistration.Nested classes/interfaces inherited from interface io.deephaven.plugin.Registration
io.deephaven.plugin.Registration.Callback -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterInto(io.deephaven.plugin.Registration.Callback callback)
-
Field Details
-
PACKAGE_JSON
- See Also:
-
NAME
- See Also:
-
VERSION
- See Also:
-
MAIN
- See Also:
-
-
Method Details
-
registerInto
public void registerInto(io.deephaven.plugin.Registration.Callback callback) - Specified by:
registerIntoin interfaceio.deephaven.plugin.Registration
-