protected BluetoothDevicesProvider resolveBluetoothDeviceProvider() {
        if (bluetoothDevicesProvider == null) {
            Set<BluetoothDevicesProvider> providers = getCamelContext().getRegistry()
                    .findByType(BluetoothDevicesProvider.class);
            if (providers.size() == 1) {
                BluetoothDevicesProvider provider = providers.iterator().next();
                LOG.info("Found single instance of the BluetoothDevicesProvider in the registry. {} will be used.",
                        provider);
                return provider;
            } else if (getComponent().getBluetoothDevicesProvider() != null) {
                return getComponent().getBluetoothDevicesProvider();
            } else {
                return new BluecoveBluetoothDeviceProvider();
            }
        } else {
            return bluetoothDevicesProvider;
        }
    }
protected BluetoothDevicesProvider resolveBluetoothDeviceProvider ( ) { if ( bluetoothDevicesProvider == null ) { Set < BluetoothDevicesProvider > providers = getCamelContext ( ) . getRegistry ( ) . findByType ( BluetoothDevicesProvider . class ) ; if ( providers . size ( ) == 1 ) { BluetoothDevicesProvider provider = providers . iterator ( ) . next ( ) ; LOG . info ( "Found single instance of the BluetoothDevicesProvider in the registry. {} will be used." , provider ) ; return provider ; } else if ( getComponent ( ) . getBluetoothDevicesProvider ( ) != null ) { return getComponent ( ) . getBluetoothDevicesProvider ( ) ; } else { return new BluecoveBluetoothDeviceProvider ( ) ; } } else { return bluetoothDevicesProvider ; } }
Helpers