org.apache.shale.clay.config.beans
Class ConfigBeanFactory

java.lang.Object
  extended by org.apache.shale.clay.config.beans.ConfigBeanFactory

public final class ConfigBeanFactory
extends Object

This is an abstract factory that contains a ordered collection of object pools ConfigBean. The configuration beans are registered on application startup by the ClayConfigListener.


Method Summary
static void destroy()
          Invoked by the context listener ClayConfigureListener on application shutdown to clean up cached resources.
static ConfigBean findConfig(String id)
          This method will return a ConfigBean that can be used to return component metadata.
static void refresh()
          This method should be called from key points in the application to invoke automatic reloading of the configuration files if they have been modified since last reloaded.
static void register(ConfigBean config)
          This method is invoked to register a class instance implementing ConfigBean interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

register

public static void register(ConfigBean config)

This method is invoked to register a class instance implementing ConfigBean interface.

Parameters:
config - ConfigBean collection of faces component metadata

findConfig

public static ConfigBean findConfig(String id)

This method will return a ConfigBean that can be used to return component metadata. The suffix of the parameter is used to find a ConfigBean that has the metadata.

Parameters:
id - jsfid
Returns:
config bean

destroy

public static void destroy()

Invoked by the context listener ClayConfigureListener on application shutdown to clean up cached resources.


refresh

public static void refresh()

This method should be called from key points in the application to invoke automatic reloading of the configuration files if they have been modified since last reloaded. If the XML files have changed, all files have to be reloaded. This includes HTML template files.



Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.