Skip to content

Commit

Permalink
[Fix #1505] Avoid many instances of DefaultNodeInstanceFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado committed Oct 2, 2024
1 parent a90f17e commit 790154d
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 790154d

Please sign in to comment.