@Override public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException { if (this.portletContext != null && bean instanceof PortletContextAware) { ((PortletContextAware) bean).setPortletContext(this.portletContext); } if (this.portletConfig != null && bean instanceof PortletConfigAware) { ((PortletConfigAware) bean).setPortletConfig(this.portletConfig); } return bean; }
public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException { if (this.portletContext != null && bean instanceof PortletContextAware) { ((PortletContextAware) bean).setPortletContext(this.portletContext); } if (this.portletConfig != null && bean instanceof PortletConfigAware) { ((PortletConfigAware) bean).setPortletConfig(this.portletConfig); } return bean; }