Package org.apache.camel.spi
Interface CliConnectorFactory
-
public interface CliConnectorFactory
Factory for creating connector to CLI tooling. Such as a localCliConnector
that allows Camel CLI to manage local running Camel integrations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CliConnector
createConnector()
Creates the connector which will be added as aService
toCamelContext
as the lifecycle to start and stop the connector.String
getRuntime()
What runtime platform is in use, such as camel-jbang, camel-spring-boot, or camel-quarkus etc.String
getRuntimeStartClass()
The main class used by the runtime to start.String
getRuntimeVersion()
What runtime platform version is in use.boolean
isEnabled()
Whether CLI connector is enabled.void
setEnabled(boolean enabled)
To enable CLI connector.void
setRuntime(String runtime)
What runtime platform is in use, such as camel-jbang, camel-spring-boot, or camel-quarkus etc.void
setRuntimeStartClass(String className)
The main class used by the runtime to start.void
setRuntimeVersion(String version)
What runtime platform version is in use.
-
-
-
Field Detail
-
FACTORY
static final String FACTORY
Service factory key.- See Also:
- Constant Field Values
-
-
Method Detail
-
setEnabled
void setEnabled(boolean enabled)
To enable CLI connector.
-
isEnabled
boolean isEnabled()
Whether CLI connector is enabled.
-
setRuntime
void setRuntime(String runtime)
What runtime platform is in use, such as camel-jbang, camel-spring-boot, or camel-quarkus etc.
-
getRuntime
String getRuntime()
What runtime platform is in use, such as camel-jbang, camel-spring-boot, or camel-quarkus etc.
-
setRuntimeVersion
void setRuntimeVersion(String version)
What runtime platform version is in use.
-
getRuntimeVersion
String getRuntimeVersion()
What runtime platform version is in use.
-
setRuntimeStartClass
void setRuntimeStartClass(String className)
The main class used by the runtime to start.
-
getRuntimeStartClass
String getRuntimeStartClass()
The main class used by the runtime to start.
-
createConnector
CliConnector createConnector()
Creates the connector which will be added as aService
toCamelContext
as the lifecycle to start and stop the connector.
-
-