/** * Creates a new object {@link Injectee} corresponding to the injecting point. The injectee contains basic information * about the injection point types and {@link ForeignDescriptor} of the underlying DI provider to make delegated injection * resolver as simple as possible. * * @param parameter jersey-like parameter corresponding to one resource-method's parameter. * @return injectee instance as a source of the information about the injecting point. */ private Injectee getInjectee(Parameter parameter) { InjecteeImpl injectee = new InjecteeImpl(); injectee.setRequiredType(parameter.getType()); injectee.setInjecteeClass(parameter.getRawType()); ForeignDescriptor proxyDescriptor = descriptorCache.apply(parameter); if (proxyDescriptor != null) { injectee.setInjecteeDescriptor(proxyDescriptor); } return injectee; }
/** * Creates a new object {@link Injectee} corresponding to the injecting point. The injectee contains basic information * about the injection point types and {@link ForeignDescriptor} of the underlying DI provider to make delegated injection * resolver as simple as possible. * * @param parameter jersey-like parameter corresponding to one resource-method's parameter. * @return injectee instance as a source of the information about the injecting point. */ private Injectee getInjectee(Parameter parameter) { InjecteeImpl injectee = new InjecteeImpl(); injectee.setRequiredType(parameter.getType()); injectee.setInjecteeClass(parameter.getRawType()); ForeignDescriptor proxyDescriptor = descriptorCache.apply(parameter); if (proxyDescriptor != null) { injectee.setInjecteeDescriptor(proxyDescriptor); } return injectee; }
/** * Creates a new object {@link Injectee} corresponding to the injecting point. The injectee contains basic information * about the injection point types and {@link ForeignDescriptor} of the underlying DI provider to make delegated injection * resolver as simple as possible. * * @param parameter jersey-like parameter corresponding to one resource-method's parameter. * @return injectee instance as a source of the information about the injecting point. */ private Injectee getInjectee(Parameter parameter) { InjecteeImpl injectee = new InjecteeImpl(); injectee.setRequiredType(parameter.getType()); injectee.setInjecteeClass(parameter.getRawType()); ForeignDescriptor proxyDescriptor = descriptorCache.apply(parameter); if (proxyDescriptor != null) { injectee.setInjecteeDescriptor(proxyDescriptor); } return injectee; }
/** * Creates a new object {@link Injectee} corresponding to the injecting point. The injectee contains basic information * about the injection point types and {@link ForeignDescriptor} of the underlying DI provider to make delegated injection * resolver as simple as possible. * * @param parameter jersey-like parameter corresponding to one resource-method's parameter. * @return injectee instance as a source of the information about the injecting point. */ private Injectee getInjectee(Parameter parameter) { InjecteeImpl injectee = new InjecteeImpl(); injectee.setRequiredType(parameter.getType()); injectee.setInjecteeClass(parameter.getRawType()); ForeignDescriptor proxyDescriptor = descriptorCache.apply(parameter); if (proxyDescriptor != null) { injectee.setInjecteeDescriptor(proxyDescriptor); } return injectee; }