org.javalid.external.jsf.config
Class JsfConfigurationDeclarative

java.lang.Object
  extended by org.javalid.external.jsf.config.JsfConfigurationDeclarative

public class JsfConfigurationDeclarative
extends java.lang.Object

This class is responsible for loading the jsf xml configuration (validation rules and such). This class should be used as a singleton for access to configuration information.

Since:
1.0
Version:
1.0
Author:
M.Reuvers

Constructor Summary
JsfConfigurationDeclarative(java.lang.String xmlConfigFile)
           
JsfConfigurationDeclarative(java.lang.String xmlConfigFile, javax.servlet.ServletContext ctx)
           
 
Method Summary
 ViewElement findViewElement(java.lang.String path)
          Returns the ViewElement for given path or null if not found
 java.lang.String getResourceBundleName()
          Returns the bundleName to use, if NOT specified by the user returns null, indicating the default bundleName on the facescontext must be used.
protected  void init(java.lang.String xmlConfigFile, javax.servlet.ServletContext ctx)
           
 boolean isViewElementPresent(java.lang.String path)
          Return true if for given path a ViewElement exists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsfConfigurationDeclarative

public JsfConfigurationDeclarative(java.lang.String xmlConfigFile)
Since:
1.1

JsfConfigurationDeclarative

public JsfConfigurationDeclarative(java.lang.String xmlConfigFile,
                                   javax.servlet.ServletContext ctx)
Method Detail

init

protected void init(java.lang.String xmlConfigFile,
                    javax.servlet.ServletContext ctx)

isViewElementPresent

public boolean isViewElementPresent(java.lang.String path)
Return true if for given path a ViewElement exists

Parameters:
path - The path to check (viewpath, without server path and get parameters etc. Example: /example.jspx , /pages/example.xhtml etc). See JsfSupport for stripping a path of get parameters ..
Returns:
True if exists, false otherwise.

findViewElement

public ViewElement findViewElement(java.lang.String path)
Returns the ViewElement for given path or null if not found

Parameters:
path - The path to check (viewpath, without server path and get parameters etc. Example: /example.jspx , /pages/example.xhtml etc). See JsfSupport for stripping a path of get parameters ..
Returns:
ViewElement if found, null otherwise.

getResourceBundleName

public java.lang.String getResourceBundleName()
Returns the bundleName to use, if NOT specified by the user returns null, indicating the default bundleName on the facescontext must be used.

Returns:
Resource bundle name to use to find the messages in