Skip to content

Commit

Permalink
Upgrade to Camel 4.0.0-M2
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
  • Loading branch information
oscerd committed Mar 29, 2023
1 parent b653df9 commit 3fe5f45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void load(DataTypeRegistry registry) {

if (resolver == null) {
if (camelContext instanceof ExtendedCamelContext) {
resolver = camelContext.getCamelContextExtension(ExtendedCamelContext.class).getPackageScanClassResolver();
resolver = camelContext.getCamelContextExtension().getPackageScanClassResolver();
} else {
resolver = new DefaultPackageScanClassResolver();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public Optional<DataTypeConverter> resolve(String scheme, String name, CamelCont
}

private Optional<DataTypeConverter> findConverter(String name, CamelContext context) {
return context.getCamelContextExtension(ExtendedCamelContext.class)
return context.getCamelContextExtension()
.getBootstrapFactoryFinder(DATA_TYPE_CONVERTER_RESOURCE_PATH)
.newInstance(name, DataTypeConverter.class);
}
Expand Down

0 comments on commit 3fe5f45

Please sign in to comment.