/** * Provides a fully-constructed and injected instance of the service from the service * instance. * * @return an instance of the service. */ @Override public Object get() { return qualifiers == null || qualifiers.length == 0 ? serviceInstance.getService(type) : serviceInstance.getService(type, qualifiers); }
sutValue = serviceInstance.getService(sutType); } else if (foundClientInstance.isPresent()) { ClientInstance clientInstance = foundClientInstance.get(); sutValue = serviceInstance.getService(sutType, clientName); } catch (Exception e) { LoggingUtil.INSTANCE.debug("could not find client of type '{}'", sutValue = serviceInstance.getService(sutType, clientSupplierName); } catch (Exception e) { LoggingUtil.INSTANCE.debug(
.getMetaAnnotations(nameQualifers, customQualifiers); Object sutInstance = serviceInstance.getService(sutType, sutQualifiers); sutDescriptor.setValue(testInstance, sutInstance); });