@Override public ActiveDescriptor<?> compute(Injectee key) { return serviceLocator.getInjecteeDescriptor(key); } });
@Override public ActiveDescriptor<?> compute(Injectee key) { return serviceLocator.getInjecteeDescriptor(key); } });
@Override public ActiveDescriptor<?> compute(Injectee key) { return serviceLocator.getInjecteeDescriptor(key); } });
@Override public ActiveDescriptor<?> getInjecteeDescriptor(Injectee injectee) throws MultiException { return delegate.getInjecteeDescriptor(injectee); }
@Override public ActiveDescriptor<?> getInjecteeDescriptor(Injectee injectee) throws MultiException { return delegate.getInjecteeDescriptor(injectee); }
/** * 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); } }
@Override public Object resolve(Injectee injectee, ServiceHandle<?> root) { ActiveDescriptor<?> descriptor = locator.getInjecteeDescriptor(injectee); if (descriptor == null) { // Is it OK to return null? if (isNullable(injectee)) { return null; } throw new MultiException(new UnsatisfiedDependencyException(injectee)); } return locator.getService(descriptor, root, injectee); } }
@Override public Object resolve(Injectee injectee, ServiceHandle<?> root) { ActiveDescriptor<?> descriptor = locator.getInjecteeDescriptor(injectee); if (descriptor == null) { // Is it OK to return null? if (isNullable(injectee)) { return null; } throw new MultiException(new UnsatisfiedDependencyException(injectee)); } return locator.getService(descriptor, root, injectee); } }
@Override public Object resolve(Injectee injectee, ServiceHandle<?> root) { ActiveDescriptor<?> descriptor = locator.getInjecteeDescriptor(injectee); if (descriptor == null) { // Is it OK to return null? if (isNullable(injectee)) { return null; } throw new MultiException(new UnsatisfiedDependencyException(injectee)); } return locator.getService(descriptor, root, injectee); } }
@Override public Object resolve(Injectee injectee, ServiceHandle<?> root) { ActiveDescriptor<?> descriptor = locator.getInjecteeDescriptor(injectee); if (descriptor == null) { // Is it OK to return null? if (isNullable(injectee)) { return null; } throw new MultiException(new UnsatisfiedDependencyException(injectee)); } return locator.getService(descriptor, root, injectee); } }
ActiveDescriptor<?> childService; try { childService = locator.getInjecteeDescriptor(ip);
public Object resolve(Injectee injectee, ServiceHandle<?> root) ActiveDescriptor<?> ad = _localServiceLocator.getInjecteeDescriptor(injectee); if (ad != null) { return _localServiceLocator.getService(ad, root, injectee); ad = _remoteServiceLocator.getInjecteeDescriptor(injectee); if ((ad != null) && (ad.getDescriptorVisibility() == DescriptorVisibility.LOCAL)) { ad = null;