public class CamelConnectorCommonConfiguration extends Object
smallrye-camel connector.| Modifier and Type | Field and Description |
|---|---|
protected org.eclipse.microprofile.config.Config |
config |
| Constructor and Description |
|---|
CamelConnectorCommonConfiguration(org.eclipse.microprofile.config.Config config)
Creates a new CamelConnectorCommonConfiguration.
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.microprofile.config.Config |
config() |
String |
getChannel() |
String |
getEndpointUri()
Gets the endpoint-uri value from the configuration.
|
protected <T> Optional<T> |
getFromAlias(String alias,
Class<T> type)
Retrieves the value stored for the given alias.
|
protected <T> T |
getFromAliasWithDefaultValue(String alias,
Class<T> type,
T defaultValue)
Retrieves the value stored for the given alias.
|
void |
validate() |
public CamelConnectorCommonConfiguration(org.eclipse.microprofile.config.Config config)
public org.eclipse.microprofile.config.Config config()
protected <T> Optional<T> getFromAlias(String alias, Class<T> type)
T - the targeted typealias - the attribute alias, must not be null or blanktype - the targeted typeprotected <T> T getFromAliasWithDefaultValue(String alias, Class<T> type, T defaultValue)
T - the targeted typealias - the attribute alias, must not be null or blanktype - the targeted typedefaultValue - the default valuepublic String getChannel()
public String getEndpointUri()
public void validate()
Copyright © 2018–2021 SmallRye. All rights reserved.