@Override protected void inject(Object bean, String beanName, PropertyValues pvs) throws Throwable { Field field = (Field) this.member; try { ReflectionUtils.makeAccessible(field); SpringRequestContext context = new SpringRequestContext(beanName); field.set(bean, context); } catch (Throwable ex) { throw new BeanCreationException("Could not inject context field: " + field, ex); } } }
@Override protected void inject(Object bean, String beanName, PropertyValues pvs) throws Throwable { Field field = (Field) this.member; try { ReflectionUtils.makeAccessible(field); SpringRequestContext context = new SpringRequestContext(beanName); field.set(bean, context); } catch (Throwable ex) { throw new BeanCreationException("Could not inject context field: " + field, ex); } } }
@Override protected void inject(Object bean, String beanName, PropertyValues pvs) throws Throwable { Field field = (Field) this.member; try { ReflectionUtils.makeAccessible(field); SpringRequestContext context = new SpringRequestContext(beanName); field.set(bean, context); } catch (Throwable ex) { throw new BeanCreationException("Could not inject context field: " + field, ex); } } }
@Override protected void inject(Object bean, String beanName, PropertyValues pvs) throws Throwable { if (checkPropertySkipping(pvs)) { return; } Method method = (Method) this.member; try { ReflectionUtils.makeAccessible(method); SpringRequestContext context = new SpringRequestContext(beanName); method.invoke(bean, context); } catch (InvocationTargetException ex) { throw ex.getTargetException(); } catch (Throwable ex) { throw new BeanCreationException("Could not inject context method: " + method, ex); } }
@Override protected void inject(Object bean, String beanName, PropertyValues pvs) throws Throwable { if (checkPropertySkipping(pvs)) { return; } Method method = (Method) this.member; try { ReflectionUtils.makeAccessible(method); SpringRequestContext context = new SpringRequestContext(beanName); method.invoke(bean, context); } catch (InvocationTargetException ex) { throw ex.getTargetException(); } catch (Throwable ex) { throw new BeanCreationException("Could not inject context method: " + method, ex); } }
@Override protected void inject(Object bean, String beanName, PropertyValues pvs) throws Throwable { if (checkPropertySkipping(pvs)) { return; } Method method = (Method) this.member; try { ReflectionUtils.makeAccessible(method); SpringRequestContext context = new SpringRequestContext(beanName); method.invoke(bean, context); } catch (InvocationTargetException ex) { throw ex.getTargetException(); } catch (Throwable ex) { throw new BeanCreationException("Could not inject context method: " + method, ex); } }