org.hdpagination.web.jsf.util
Class SpringBeanLocator

java.lang.Object
  extended by org.hdpagination.web.jsf.util.SpringBeanLocator

public final class SpringBeanLocator
extends java.lang.Object

This class is to look up bean defined in Spring application context.

Since:
1.1
Author:
Liangfeng Ren

Method Summary
static GlobalConfig findGlobalConfig(javax.faces.context.FacesContext facesContext)
          Find GlobalConfig instance from Spring WebApplicationContext
static PaginateDefinition findPaginateDefinition(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
          Find the instance of PaginateDefinition from Spring application context based on the bean id (name) passed from Tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findGlobalConfig

public static GlobalConfig findGlobalConfig(javax.faces.context.FacesContext facesContext)
Find GlobalConfig instance from Spring WebApplicationContext

Parameters:
servletCtx -
Returns:

findPaginateDefinition

public static PaginateDefinition findPaginateDefinition(javax.faces.context.FacesContext facesContext,
                                                        javax.faces.component.UIComponent component)
Find the instance of PaginateDefinition from Spring application context based on the bean id (name) passed from Tag.

Parameters:
facesContext -
component -
Returns:


Copyright © 2008 HDPagination All Rights Reserved.