public int getAssignableLocalBusinessInterfaceIndex(Class<?> target) {
        if (ivBusinessLocalInterfaceClasses != null) {
            for (int i = 0; i < ivBusinessLocalInterfaceClasses.length; i++) {
                Class<?> bInterface = ivBusinessLocalInterfaceClasses[i];
                if (target.isAssignableFrom(bInterface)) {
                    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                        Tr.debug(tc, "getAssignableLocalBusinessInterfaceIndex : " +
                                     bInterface.getName() + " at index " + i);
                    return i;
                }
            }
        }

        return -1;
    }
public int getAssignableLocalBusinessInterfaceIndex ( Class < ? > target ) { if ( ivBusinessLocalInterfaceClasses != null ) { for ( int i = 0 ; i < ivBusinessLocalInterfaceClasses . length ; i ++ ) { Class < ? > bInterface = ivBusinessLocalInterfaceClasses [ i ] ; if ( target . isAssignableFrom ( bInterface ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getAssignableLocalBusinessInterfaceIndex : " + bInterface . getName ( ) + " at index " + i ) ; return i ; } } } return - 1 ; }
Gets the index of the local business interface. This will also
try to match the interface class passed in to a super type of a
known interface of an EJB. <p>

Note: this should only be used if necessary, as this is an expensive
check. The getLocalBusinessInterfaceIndex method should be used
if this specialized check is not needed.

@param target the class that needs to be matched to an interface
@return the index of the found matching interface