spring-webmvc-portlet

org.springframework.web.portlet.context
Class PortletContextAwareProcessor

java.lang.Object
  extended by org.springframework.web.portlet.context.PortletContextAwareProcessor
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor

public class PortletContextAwareProcessor
extends java.lang.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.

Since:
2.0
Author:
Juergen Hoeller, John A. Lewis
See Also:
PortletContextAware, AbstractRefreshablePortletApplicationContext.postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory)

Constructor Summary
PortletContextAwareProcessor(javax.portlet.PortletConfig portletConfig)
          Create a new PortletContextAwareProcessor for the given config.
PortletContextAwareProcessor(javax.portlet.PortletContext portletContext)
          Create a new PortletContextAwareProcessor for the given context.
PortletContextAwareProcessor(javax.portlet.PortletContext portletContext, javax.portlet.PortletConfig portletConfig)
          Create a new PortletContextAwareProcessor for the given context and config.
 
Method Summary
 java.lang.Object postProcessAfterInitialization(java.lang.Object bean, java.lang.String beanName)
           
 java.lang.Object postProcessBeforeInitialization(java.lang.Object bean, java.lang.String beanName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletContextAwareProcessor

public PortletContextAwareProcessor(javax.portlet.PortletContext portletContext)
Create a new PortletContextAwareProcessor for the given context.


PortletContextAwareProcessor

public PortletContextAwareProcessor(javax.portlet.PortletConfig portletConfig)
Create a new PortletContextAwareProcessor for the given config.


PortletContextAwareProcessor

public PortletContextAwareProcessor(javax.portlet.PortletContext portletContext,
                                    javax.portlet.PortletConfig portletConfig)
Create a new PortletContextAwareProcessor for the given context and config.

Method Detail

postProcessBeforeInitialization

public java.lang.Object postProcessBeforeInitialization(java.lang.Object bean,
                                                        java.lang.String beanName)
                                                 throws org.springframework.beans.BeansException
Specified by:
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
Throws:
org.springframework.beans.BeansException

postProcessAfterInitialization

public java.lang.Object postProcessAfterInitialization(java.lang.Object bean,
                                                       java.lang.String beanName)
Specified by:
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor

spring-webmvc-portlet