Alternera.Plugins.Camel.HostSpec (alternera_plugin_camel v0.9.0)

Copy Markdown View Source

The Alternera.PluginHosts.Host.spec/0 of a Camel plugin host: a Maven project that depends on the host runtime (host_runtime, alternera:alternera-camel-host) and lists its own components, built with mvn package. This package's plugin_host is one, and the default.

Summary

Functions

Whether the project at root has been built: whether the classpath its entry runs on (default ["target/lib/*"], relative to root) holds the runtime jar.

The classpath of an entry that names none, relative to its root.

The project a host entry runs when it names no root: this package's plugin_host.

Options: :root (the built project, default this package's plugin_host), :routes (Camel routes include patterns), :properties (a Camel properties location), :debug_ops, :watch (reload the routes when their files change), :classpath (the host's whole classpath, each entry a jar or a directory of jars as dir/*, relative to :root, default ["target/lib/*"], where the project's build copies the runtime and its dependencies; a JVM only), :java (default the java on the path, resolved in :root, whose .tool-versions asks for JDK 21), :jvm_args, :env and :log_path, and :written_routes, the rules for routes the proxy writes (a map of components, languages, beans and calls, lists of names, and max_definitions and max_bytes, integers; for the beans a document defines, bean_types, class names, jdbc_urls, patterns with *, and max_pool_size and bean_idle_seconds, integers), passed as --written-routes <json>. native: true runs the GraalVM native image target/plugin-host instead of a JVM (:java, :jvm_args and :classpath then do not apply: the image holds what its build had).

Functions

built?(root \\ "/Users/johan/projects/10e/alternera-camel/alternera_plugin_camel/plugin_host", classpath \\ ["target/lib/*"])

Whether the project at root has been built: whether the classpath its entry runs on (default ["target/lib/*"], relative to root) holds the runtime jar.

default_classpath()

The classpath of an entry that names none, relative to its root.

default_root()

The project a host entry runs when it names no root: this package's plugin_host.

spec(opts \\ [])

Options: :root (the built project, default this package's plugin_host), :routes (Camel routes include patterns), :properties (a Camel properties location), :debug_ops, :watch (reload the routes when their files change), :classpath (the host's whole classpath, each entry a jar or a directory of jars as dir/*, relative to :root, default ["target/lib/*"], where the project's build copies the runtime and its dependencies; a JVM only), :java (default the java on the path, resolved in :root, whose .tool-versions asks for JDK 21), :jvm_args, :env and :log_path, and :written_routes, the rules for routes the proxy writes (a map of components, languages, beans and calls, lists of names, and max_definitions and max_bytes, integers; for the beans a document defines, bean_types, class names, jdbc_urls, patterns with *, and max_pool_size and bean_idle_seconds, integers), passed as --written-routes <json>. native: true runs the GraalVM native image target/plugin-host instead of a JVM (:java, :jvm_args and :classpath then do not apply: the image holds what its build had).