public class TemplateComponentConfigBean extends TemplateConfigBean
This ConfigBean is responsible for handling full XML views. For full XML views, the viewId will correspond to an XML file that defines meta-component declarations specific for the page. It's assumed that here will be a top-level component with a jsfid matching the viewId.
ComponentConfigBean.WatchDog, ComponentConfigBean.XmlConfigDef
ConfigBean.ConfigDefinition
context, displayElements, isWatchDogOn, messages, NAMING_CONTAINER_TYPES, parser, suffixes, watchDogs
Constructor and Description |
---|
TemplateComponentConfigBean() |
Modifier and Type | Method and Description |
---|---|
int |
getWeight()
Returns an integer value use to order the registered
ConfigBean instances
with the ConfigBeanFactory . |
protected void |
loadConfigFiles()
This is an overridden method called from the init method.
|
boolean |
refresh(boolean forceReload)
If the
forceReload is true ,
the displayElements cache is invalidated. |
boolean |
validMoniker(String id)
Overrides the super call to change the condition of the filter.
|
clear, getElement, getTopLevelElement, init, optimizeTree
addChild, assignParent, checkCircularInheritance, checkTree, checkTree, compareTo, describeRelationships, destroy, getAssociations, getConfigDefinitions, getGeneralizations, getServletContext, isDesigntime, isNamingContainer, realizingInheritance, realizingInheritance, resolveInheritance, setDesigntime, unassignParent
public int getWeight()
Returns an integer value use to order the registered ConfigBean
instances
with the ConfigBeanFactory
.
getWeight
in interface ConfigBean
getWeight
in class TemplateConfigBean
protected void loadConfigFiles()
This is an overridden method called from the init method.
It loads an instance of the ClayXmlParser
and
establishes a Map collection to hold the resource
ComponentConfigBean.WatchDog
's.
loadConfigFiles
in class TemplateConfigBean
public boolean refresh(boolean forceReload)
If the forceReload
is true
,
the displayElements
cache is invalidated.
A true
value is returned if cache has
been cleared.
All files loaded on-demand are purged. Full view definitions
loaded using the Globals.CLAY_FULLXML_CONFIG_FILES
initialization parameter are reloaded if modified or if a
forceReload
is specified.
refresh
in interface ConfigBean
refresh
in class TemplateConfigBean
forceReload
- true
if the group of associated resources should be reloadedtrue
if one of the resources changedpublic boolean validMoniker(String id)
Overrides the super call to change the condition of the filter. This
ConfigBean
can create components where the id end in the suffix
defined in the web deployment descriptor as a initialization parameter with
the name defined by Globals.CLAY_XML_TEMPLATE_SUFFIX
Or, using
the default defined by Globals.CLAY_DEFAULT_XML_TEMPLATE_SUFFIX
validMoniker
in interface ConfigBean
validMoniker
in class TemplateConfigBean
id
- jsfidtrue
if the jsfid can be handleCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.