public class PluginBuilder extends Object implements Builder
LayoutCatalog.| Constructor and Description |
|---|
PluginBuilder(AliasCatalog aliasCatalog,
PluginCatalog pluginCatalog)
Creates the plug-in builder with an alias catalog which will be queried for class alias
and a plug-in catalog that will be populated with plug-ins.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build(NodeList nodes)
Parses all the nodes instantiating the plugins and put them into the LayoutCatalog.
|
XPathExpression |
getExpression()
Must return the XPath expression that is to be used to fetch
the data for the builder.
|
ExceptionKey |
getParseKey()
It must return the key that is to be used for the exception in case
of parsin error.
|
public static final String PARSER
public PluginBuilder(AliasCatalog aliasCatalog, PluginCatalog pluginCatalog)
aliasCatalog - The alias catalog to be queried for class aliases.pluginCatalog - The catalog to be populated with plug-ins.public void build(NodeList nodes) throws BuilderException
build in interface Buildernodes - The nodes of the configuration document containing the plugins.BuilderException - In case of:ClassNotFoundExceptionInstantiationExceptionIllegalAccessExceptionpublic XPathExpression getExpression()
BuildergetExpression in interface Builderpublic ExceptionKey getParseKey()
BuildergetParseKey in interface BuilderCopyright © 2014. All Rights Reserved.