Skip to content

Commit

Permalink
Producer adapter: support check should always return false
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-ambrosio committed Oct 26, 2021
1 parent 233f3dd commit 2f859ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions src/main/resources/codegen/java/ProducerExchangeAdapter.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ public class ${exchangeAdapterName} implements ExchangeAdapter<IdentifiedDomainE

@Override
public boolean supports(final Object exchangeMessage) {
if(!exchangeMessage.getClass().equals(Message.class)) {
return false;
}
final String schemaName = ((Message) exchangeMessage).messageParameters.typeName();
return schemaName.startsWith(SCHEMA_PREFIX);
return false;
}

private String resolveFullSchemaReference(final IdentifiedDomainEvent event) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ public class AuthorProducerAdapter implements ExchangeAdapter<IdentifiedDomainEv

@Override
public boolean supports(final Object exchangeMessage) {
if(!exchangeMessage.getClass().equals(Message.class)) {
return false;
}
final String schemaName = ((Message) exchangeMessage).messageParameters.typeName();
return schemaName.startsWith(SCHEMA_PREFIX);
return false;
}

private String resolveFullSchemaReference(final IdentifiedDomainEvent event) {
Expand Down

0 comments on commit 2f859ce

Please sign in to comment.