protected void checkTypeCompatibility() throws AssignabilityRegistrationException { if (componentKey instanceof Class) { Class componentType = (Class) componentKey; if (!componentType.isAssignableFrom(componentImplementation)) { throw new AssignabilityRegistrationException(componentType, componentImplementation); } } }
throw new AssignabilityRegistrationException(service, delegate.getClass());