|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.shale.clay.config.beans.ConfigBeanFactory
public final class ConfigBeanFactory
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 |
---|
public static void register(ConfigBean config)
This method is invoked to register a class instance implementing
ConfigBean
interface.
config
- ConfigBean
collection of faces component metadatapublic 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.
id
- jsfid
public static void destroy()
Invoked by the context listener ClayConfigureListener
on
application shutdown to clean up cached resources.
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |