public class PortletContextAwareProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor
BeanPostProcessor
implementation that passes the PortletContext to beans that implement
the PortletContextAware
interface.
Portlet application contexts will automatically register this with their underlying bean factory. Applications do not use this directly.
PortletContextAware
,
AbstractRefreshablePortletApplicationContext.postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory)
Constructor and Description |
---|
PortletContextAwareProcessor(PortletConfig portletConfig)
Create a new PortletContextAwareProcessor for the given config.
|
PortletContextAwareProcessor(PortletContext portletContext)
Create a new PortletContextAwareProcessor for the given context.
|
PortletContextAwareProcessor(PortletContext portletContext,
PortletConfig portletConfig)
Create a new PortletContextAwareProcessor for the given context and config.
|
Modifier and Type | Method and Description |
---|---|
Object |
postProcessAfterInitialization(Object bean,
String beanName) |
Object |
postProcessBeforeInitialization(Object bean,
String beanName) |
public PortletContextAwareProcessor(PortletContext portletContext)
public PortletContextAwareProcessor(PortletConfig portletConfig)
public PortletContextAwareProcessor(PortletContext portletContext, PortletConfig portletConfig)
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeInitialization
in interface org.springframework.beans.factory.config.BeanPostProcessor
org.springframework.beans.BeansException