# `Alternera.Plugins.Camel.HostSpec`
[🔗](https://github.com/10e-ab/alternera-camel/blob/v0.9.0/alternera_plugin_camel/lib/alternera/plugins/camel/host_spec.ex#L1)

The `t: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.

# `built?`

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`

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).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
