Skip to content

Commit

Permalink
[Fix apache#1505] Avoid many instances of DefaultNodeInstanceFactory (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado authored and rgdoliveira committed Oct 10, 2024
1 parent 89a3f82 commit 29603fe
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 29603fe

Please sign in to comment.