Skip to content

Commit

Permalink
CAMEL-19998: deprecate methods that should be accessed via extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
orpiske committed Oct 19, 2023
1 parent 2078f47 commit dc2ade3
Showing 1 changed file with 81 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1548,6 +1548,11 @@ public TypeConverter getTypeConverter() {
return camelContextExtension.getTypeConverter();
}

/**
* Deprecated API.
* @deprecated Use methods from the {@link ExtendedCamelContext}
*/
@Deprecated(since = "4.2.0", forRemoval = true)
public void setTypeConverter(TypeConverter typeConverter) {
camelContextExtension.setTypeConverter(typeConverter);
}
Expand All @@ -1558,7 +1563,7 @@ public void setTypeConverter(TypeConverter typeConverter) {
* @deprecated use DefaultCamelContextExtension#getOrCreateTypeConverter()
* @return A type converter instance
*/
@Deprecated(since = "4.2.0")
@Deprecated(since = "4.2.0", forRemoval = true)
protected TypeConverter getOrCreateTypeConverter() {
return camelContextExtension.getOrCreateTypeConverter();
}
Expand Down Expand Up @@ -1593,6 +1598,11 @@ public void setPropertiesComponent(PropertiesComponent propertiesComponent) {
camelContextExtension.setPropertiesComponent(propertiesComponent);
}

/**
* Deprecated API.
* @deprecated Use methods from the {@link ExtendedCamelContext}
*/
@Deprecated(since = "4.2.0", forRemoval = true)
protected void setManagementMBeanAssembler(ManagementMBeanAssembler managementMBeanAssembler) {
camelContextExtension.setManagementMBeanAssembler(managementMBeanAssembler);
}
Expand Down Expand Up @@ -3684,10 +3694,20 @@ protected RestRegistry createRestRegistry() {
return factory.createRegistry();
}

/**
* Deprecated API.
* @deprecated Use methods from the {@link ExtendedCamelContext}
*/
@Deprecated(since = "4.2.0", forRemoval = true)
public RestRegistryFactory getRestRegistryFactory() {
return camelContextExtension.getRestRegistryFactory();
}

/**
* Deprecated API.
* @deprecated Use methods from the {@link ExtendedCamelContext}
*/
@Deprecated(since = "4.2.0", forRemoval = true)
public void setRestRegistryFactory(RestRegistryFactory restRegistryFactory) {
camelContextExtension.setRestRegistryFactory(restRegistryFactory);
}
Expand Down Expand Up @@ -3720,6 +3740,11 @@ public TransformerRegistry getTransformerRegistry() {
return camelContextExtension.getTransformerRegistry();
}

/**
* Deprecated API.
* @deprecated Use methods from the {@link ExtendedCamelContext}
*/
@Deprecated(since = "4.2.0", forRemoval = true)
public void setTransformerRegistry(TransformerRegistry transformerRegistry) {
camelContextExtension.setTransformerRegistry(transformerRegistry);
}
Expand All @@ -3734,6 +3759,11 @@ public ValidatorRegistry getValidatorRegistry() {
return camelContextExtension.getValidatorRegistry();
}

/**
* Deprecated API.
* @deprecated Use methods from the {@link ExtendedCamelContext}
*/
@Deprecated(since = "4.2.0", forRemoval = true)
public void setValidatorRegistry(ValidatorRegistry validatorRegistry) {
camelContextExtension.setValidatorRegistry(validatorRegistry);
}
Expand Down Expand Up @@ -3932,6 +3962,11 @@ public ExtendedCamelContext getCamelContextExtension() {
return camelContextExtension;
}

/**
* Deprecated API.
* @deprecated Use methods from the {@link ExtendedCamelContext}
*/
@Deprecated(since = "4.2.0", forRemoval = true)
public void setName(String name) {
camelContextExtension.setName(name);
}
Expand All @@ -3941,6 +3976,11 @@ public String getName() {
return camelContextExtension.getName();
}

/**
* Deprecated API.
* @deprecated Use methods from the {@link ExtendedCamelContext}
*/
@Deprecated(since = "4.2.0", forRemoval = true)
public void setDescription(String description) {
camelContextExtension.setDescription(description);
}
Expand All @@ -3950,22 +3990,47 @@ public String getDescription() {
return camelContextExtension.getDescription();
}

/**
* Deprecated API.
* @deprecated Use methods from the {@link ExtendedCamelContext}
*/
@Deprecated(since = "4.2.0", forRemoval = true)
public FactoryFinder getBootstrapFactoryFinder() {
return camelContextExtension.getBootstrapFactoryFinder();
}

/**
* Deprecated API.
* @deprecated Use methods from the {@link ExtendedCamelContext}
*/
@Deprecated(since = "4.2.0", forRemoval = true)
public FactoryFinder getFactoryFinder(String path) {
return camelContextExtension.getFactoryFinder(path);
}

/**
* Deprecated API.
* @deprecated Use methods from the {@link ExtendedCamelContext}
*/
@Deprecated(since = "4.2.0", forRemoval = true)
public void addInterceptStrategy(InterceptStrategy interceptStrategy) {
camelContextExtension.addInterceptStrategy(interceptStrategy);
}

/**
* Deprecated API.
* @deprecated Use methods from the {@link ExtendedCamelContext}
*/
@Deprecated(since = "4.2.0", forRemoval = true)
public StartupStepRecorder getStartupStepRecorder() {
return camelContextExtension.getStartupStepRecorder();
}

/**
* Deprecated API.
* @deprecated Use methods from the {@link ExtendedCamelContext}
*/
@Deprecated(since = "4.2.0", forRemoval = true)
public void setStartupStepRecorder(StartupStepRecorder startupStepRecorder) {
camelContextExtension.setStartupStepRecorder(startupStepRecorder);
}
Expand All @@ -3982,14 +4047,29 @@ public void removeRoute(Route route) {
}
}

/**
* Deprecated API.
* @deprecated Use methods from the {@link ExtendedCamelContext}
*/
@Deprecated(since = "4.2.0", forRemoval = true)
public String resolvePropertyPlaceholders(String text, boolean keepUnresolvedOptional) {
return camelContextExtension.resolvePropertyPlaceholders(text, keepUnresolvedOptional);
}

/**
* Deprecated API.
* @deprecated Use methods from the {@link ExtendedCamelContext}
*/
@Deprecated(since = "4.2.0", forRemoval = true)
public String getBasePackageScan() {
return camelContextExtension.getBasePackageScan();
}

/**
* Deprecated API.
* @deprecated Use methods from the {@link ExtendedCamelContext}
*/
@Deprecated(since = "4.2.0", forRemoval = true)
public void setBasePackageScan(String basePackageScan) {
camelContextExtension.setBasePackageScan(basePackageScan);
}
Expand Down

0 comments on commit dc2ade3

Please sign in to comment.