Skip to content

Commit

Permalink
[Fix #1505] Avoid many instances of DefaultNodeInstanceFactory (#3689)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado authored Oct 8, 2024
1 parent 30cf1bd commit 626bbed
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@

public class CodegenNodeInstanceFactoryRegistry extends NodeInstanceFactoryRegistry {

@Override
protected NodeInstanceFactory get(Class<?> clazz) {
if (SubProcessNode.class == clazz) {
return new DefaultNodeInstanceFactory(SubProcessNode.class, LambdaSubProcessNodeInstance::new);
}
return super.get(clazz);
public CodegenNodeInstanceFactoryRegistry() {
register(SubProcessNode.class, new DefaultNodeInstanceFactory(SubProcessNode.class, LambdaSubProcessNodeInstance::new));
}
}

0 comments on commit 626bbed

Please sign in to comment.