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
.
Modifier and Type | Method and Description |
---|---|
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. |
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
- jsfidpublic 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.
Copyright © 2004-2013 Apache Software Foundation. All Rights Reserved.