addPairInterfaceFrom<InterfaceType extends PairInterface> method
- InterfaceType target,
- PairInterface source,
- PairRole role, {
- String uniquify(
- String original
Registers an already-constructed target against source for cases
where a module intentionally changes the concrete pair-interface type.
Prefer addPairInterface when the internal interface has the same type as the external interface. This method keeps the exceptional retyped connection pattern behind the same HCL registration seam.
Implementation
InterfaceType addPairInterfaceFrom<InterfaceType extends PairInterface>(
InterfaceType target,
PairInterface source,
PairRole role, {
String Function(String original)? uniquify,
}) {
target.pairConnectIO(this, source, role, uniquify: uniquify);
return target;
}