File tree Expand file tree Collapse file tree
scijava-ops-engine/src/main/java/org/scijava/ops/engine/matcher/convert Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939import org .scijava .ops .engine .matcher .MatchingResult ;
4040import org .scijava .ops .engine .matcher .OpMatcher ;
4141import org .scijava .ops .engine .matcher .impl .RuntimeSafeMatchingRoutine ;
42+ import org .scijava .ops .spi .Op ;
4243import org .scijava .priority .Priority ;
4344
4445import java .lang .reflect .Type ;
@@ -53,16 +54,18 @@ public void checkSuitability(MatchingConditions conditions)
5354 {
5455 if (conditions .hints ().containsAny (BaseOpHints .Conversion .IN_PROGRESS ,
5556 BaseOpHints .Conversion .FORBIDDEN )) //
56- throw new OpMatchingException ("Conversion is not disabled" );
57+ throw new OpMatchingException ("Conversion is disabled" );
58+ if (conditions .request ().getName ().startsWith ("engine." )) {
59+ throw new OpMatchingException ( //
60+ "Conversion is unsuitable for internal engine Ops" //
61+ );
62+ }
5763 }
5864
5965 @ Override
6066 public OpCandidate findMatch (MatchingConditions conditions , OpMatcher matcher ,
6167 OpEnvironment env )
6268 {
63- if (conditions .request ().getName ().equals ("engine.create" ))
64- throw new OpMatchingException (
65- "TODO: Avoid converting engine namespace Ops" );
6669 final var convertConditions = MatchingConditions .from ( //
6770 conditions .request (), //
6871 conditions .hints ().plus (BaseOpHints .Conversion .IN_PROGRESS ) //
You can’t perform that action at this time.
0 commit comments