Skip to content

Commit

Permalink
fixed config loading of SignalTransformer extension
Browse files Browse the repository at this point in the history
* and configured NoOpSignalTransformer in gateway

Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch.io>
  • Loading branch information
thjaeckle committed May 12, 2022
1 parent 801fb2e commit b2313b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.eclipse.ditto.base.model.signals.Signal;
import org.eclipse.ditto.base.service.DittoExtensionPoint;
import org.eclipse.ditto.internal.utils.akka.AkkaClassLoader;
import org.eclipse.ditto.internal.utils.config.DefaultScopedConfig;

import akka.actor.AbstractExtensionId;
import akka.actor.ActorSystem;
Expand Down Expand Up @@ -54,7 +55,8 @@ private static final class ExtensionId extends AbstractExtensionId<SignalTransfo

@Override
public SignalTransformer createExtension(final ExtendedActorSystem system) {
final var implementation = system.settings().config().getString(CONFIG_PATH);
final DefaultScopedConfig dittoScoped = DefaultScopedConfig.dittoScoped(system.settings().config());
final var implementation = dittoScoped.getString(CONFIG_PATH);

return AkkaClassLoader.instantiate(system, SignalTransformer.class,
implementation,
Expand Down
1 change: 1 addition & 0 deletions gateway/service/src/main/resources/gateway.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ditto {
service-name = "gateway"
signal-transformer = "org.eclipse.ditto.edge.api.dispatching.NoOpSignalTransformer"
mapping-strategy.implementation = "org.eclipse.ditto.gateway.service.util.GatewayMappingStrategies"

signal-enrichment {
Expand Down

0 comments on commit b2313b5

Please sign in to comment.