private AliasFilter(List<ActiveDescriptor<?>> bases) { for (ActiveDescriptor<?> base : bases) { String val = base.getLocatorId() + "." + base.getServiceId(); values.add(val); } }
private static String getAliasMetadataValue(ActiveDescriptor<?> descriptor) { Long locatorId = descriptor.getLocatorId(); Long serviceId = descriptor.getServiceId(); if (locatorId == null || serviceId == null) return ALIAS_FREE_DESCRIPTOR; return locatorId + "." + serviceId; }
private static String getAliasMetadataValue(ActiveDescriptor<?> descriptor) { Long locatorId = descriptor.getLocatorId(); Long serviceId = descriptor.getServiceId(); if (locatorId == null || serviceId == null) return ALIAS_FREE_DESCRIPTOR; return locatorId + "." + serviceId; }
private AliasFilter(List<ActiveDescriptor<?>> bases) { for (ActiveDescriptor<?> base : bases) { String val = base.getLocatorId() + "." + base.getServiceId(); values.add(val); } }
private AliasFilter(List<ActiveDescriptor<?>> bases) { for (ActiveDescriptor<?> base : bases) { String val = base.getLocatorId() + "." + base.getServiceId(); values.add(val); } }
private AliasFilter(List<ActiveDescriptor<?>> bases) { for (ActiveDescriptor<?> base : bases) { String val = base.getLocatorId() + "." + base.getServiceId(); values.add(val); } }
private static String getAliasMetadataValue(ActiveDescriptor<?> descriptor) { Long locatorId = descriptor.getLocatorId(); Long serviceId = descriptor.getServiceId(); if (locatorId == null || serviceId == null) return ALIAS_FREE_DESCRIPTOR; return locatorId + "." + serviceId; }
private static String getAliasMetadataValue(ActiveDescriptor<?> descriptor) { Long locatorId = descriptor.getLocatorId(); Long serviceId = descriptor.getServiceId(); if (locatorId == null || serviceId == null) return ALIAS_FREE_DESCRIPTOR; return locatorId + "." + serviceId; }
/** * Called by CDI, gathers up all of the injection points known to hk2. * * @param pit The injection target even from CDI */ @SuppressWarnings("unused") private <T> void injectionTargetObserver(@Observes ProcessInjectionTarget<T> pit) { if (locator == null) return; InjectionTarget<?> injectionTarget = pit.getInjectionTarget(); Set<InjectionPoint> injectionPoints = injectionTarget.getInjectionPoints(); for (InjectionPoint injectionPoint : injectionPoints) { Injectee injectee = HK2IntegrationUtilities.convertInjectionPointToInjectee(injectionPoint); ActiveDescriptor<?> descriptor = locator.getInjecteeDescriptor(injectee); if (descriptor == null || descriptor.getServiceId() == null) continue; // using a map removes duplicates foundWithHK2.put(descriptor.getServiceId(), descriptor); } }
Long sdSID = activeDescriptor.getServiceId(); if ((activeDescriptor instanceof SystemDescriptor) && (sdSID == null)) { throw new IllegalArgumentException("The descriptor passed to getServiceHandle was never added to this ServiceLocator (id=" +
Long sdSID = activeDescriptor.getServiceId(); if ((activeDescriptor instanceof SystemDescriptor) && (sdSID == null)) { throw new IllegalArgumentException("The descriptor passed to getServiceHandle was never added to this ServiceLocator (id=" +
Long sdSID = activeDescriptor.getServiceId(); if ((activeDescriptor instanceof SystemDescriptor) && (sdSID == null)) { throw new IllegalArgumentException("The descriptor passed to getServiceHandle was never added to this ServiceLocator (id=" +
Long sdSID = activeDescriptor.getServiceId(); if ((activeDescriptor instanceof SystemDescriptor) && (sdSID == null)) { throw new IllegalArgumentException("The descriptor passed to getServiceHandle was never added to this ServiceLocator (id=" +
private static String oneLineDescriptor(ActiveDescriptor<?> descriptor) { if (descriptor == null) return "null-descriptor"; return descriptor.getImplementation() + ((descriptor.getName() != null) ? "/" + descriptor.getName() : "") + "(" + descriptor.getServiceId() + "," + descriptor.getLocatorId() + "," + System.identityHashCode(descriptor) + ")"; }
factoryServiceId = retVal.getServiceId(); factoryLocatorId = retVal.getLocatorId();
factoryServiceId = retVal.getServiceId(); factoryLocatorId = retVal.getLocatorId();
factoryServiceId = retVal.getServiceId(); factoryLocatorId = retVal.getLocatorId();
factoryServiceId = retVal.getServiceId(); factoryLocatorId = retVal.getLocatorId();