private void determineIsLocal() {
        // Loop through each channel in the outbound chain represented by this
        // endpoint
        int i = 0;
        for (OutboundChannelDefinition def : this.outboundChannelDefs) {
            if (LocalChannelFactory.class.isAssignableFrom(def.getOutboundFactory())) {
                // Found Local channel factory.
                if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                    Tr.debug(tc, "Found LocalChannelFactory interface: " + def.getOutboundFactory());
                }
                this.localChannelIndex = i;
                break;
            }
            i++;
        }
    }
private void determineIsLocal ( ) { int i = 0 ; for ( OutboundChannelDefinition def : this . outboundChannelDefs ) { if ( LocalChannelFactory . class . isAssignableFrom ( def . getOutboundFactory ( ) ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Found LocalChannelFactory interface: " + def . getOutboundFactory ( ) ) ; } this . localChannelIndex = i ; break ; } i ++ ; } }
Identify if one of the outbound channel definitions has a factory that
implements
the LocalChannelFactory.