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 Builder
nodes
- The nodes of the configuration document containing the plugins.BuilderException
- In case of:ClassNotFoundException
InstantiationException
IllegalAccessException
public XPathExpression getExpression()
Builder
getExpression
in interface Builder
public ExceptionKey getParseKey()
Builder
getParseKey
in interface Builder
Copyright © 2014. All Rights Reserved.