JSF-Spring

de.mindmatters.faces.spring.factory.xml
Class JsfStartupProcessor

java.lang.Object
  extended by de.mindmatters.faces.spring.factory.xml.JsfStartupProcessor
All Implemented Interfaces:
BeanFactoryPostProcessor, Ordered

public final class JsfStartupProcessor
extends java.lang.Object
implements BeanFactoryPostProcessor, Ordered

A BeanFactoryPostProcessor which initializes and configures all relevant JSF plugins which are hosted and defined in the FacesWebApplicationContext.

The following plugins will be configured and registered at the underlying JSF implementation:

  1. the JSF-Spring specific Lifecycle of type LifecycleImpl with the id LifecycleImpl.JSF_SPRING_LIFECYCLE_ID and the defined Phases (or default phases if the appropriate phase ist not configured in the FacesWebApplicationContext)
  2. the JSF-Spring specific Application of type ApplicationImpl
  3. the PhaseListeners for the appropriate Lifecycle
  4. the ActionListeners
  5. the NavigationHandlers
  6. the PropertyResolvers
  7. the StateManagers
  8. the VariableResolvers
  9. the ViewHandlers
  10. the RenderKits with the appropriate Renderers

Note: The JsfStartupProcessor will be automatically registered!

Author:
Andreas Kuhrwahl

Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
JsfStartupProcessor()
           
 
Method Summary
 int getOrder()
          Return the order value of this object, with a higher value meaning greater in terms of sorting.
 void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
          Modify the application context's internal bean factory after its standard initialization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsfStartupProcessor

public JsfStartupProcessor()
Method Detail

postProcessBeanFactory

public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
Modify the application context's internal bean factory after its standard initialization. All bean definitions will have been loaded, but no beans will have been instantiated yet. This allows for overriding or adding properties even to eager-initializing beans.

Specified by:
postProcessBeanFactory in interface BeanFactoryPostProcessor
Parameters:
beanFactory - the bean factory used by the application context

getOrder

public int getOrder()
Return the order value of this object, with a higher value meaning greater in terms of sorting.

Normally starting with 0 or 1, with Ordered.LOWEST_PRECEDENCE indicating greatest. Same order values will result in arbitrary positions for the affected objects.

Higher value can be interpreted as lower priority, consequently the first object has highest priority (somewhat analogous to Servlet "load-on-startup" values).

Note that order values below 0 are reserved for framework purposes. Application-specified values should always be 0 or greater, with only framework components (internal or third-party) supposed to use lower values.

Specified by:
getOrder in interface Ordered
Returns:
the order value
See Also:
Ordered.LOWEST_PRECEDENCE

JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG