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

Calls an Apache Camel route on a Camel plugin host the proxy runs: a JVM
(or a GraalVM native image) of a Maven project that depends on this
package's host runtime (`host_runtime`) and lists its own components,
such as this package's `plugin_host`, loaded with the installation's
routes. A route whose `from` is `direct:<name>` is the
route `<name>` a step names in its `route` setting:

    %{"host" => "erp",
      "route" => "customer.lookup",
      "inputs" => [%{"name" => "id", "value" => "${path.id}"}],
      "targets" => [%{"output" => "body", "to" => %{"in" => "vars", "name" => "customer"}}]}

The step itself is `Alternera.PluginHosts.Step`; this module is the
kind of its hosts (`PluginHosts.Kind`): their configuration,

    config :alternera_plugin_camel,
      hosts: [
        %{name: "erp", pool: %{min: 2, max: 2}, protocol: :http2,
          routes: ["file:/etc/alternera/routes/erp/*.yaml"],
          properties: "file:/etc/alternera/routes/erp/erp.properties",
          tenant: "acme"}
      ]

their command (`Plugins.Camel.HostSpec`, from `root`, `routes`,
`properties`, `native`, `java`, `jvm_args`, `env`, `debug_ops`,
`classpath` and `log_path`, `reload: :watch` for `--watch`, and
`written_routes` for `--written-routes`), and the suffix of their HTTP channel, `.camel.internal`
(`Plugin.Provisional.Upstream`, `PluginHosts.Endpoint`).

Shipped: every installation installs it (`Pipelines.PluginRegistry`); where no
host is configured, a Camel step has no host to pick.

# `source`

```elixir
@spec source() :: module()
```

The source triggers' source: a route that ends at `alternera:source:<name>`.

# `step`

The step's `PluginHosts.Step`.

---

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