org.apache.shale.clay.parser.builder
Class BuilderFactory

java.lang.Object
  extended by org.apache.shale.clay.parser.builder.BuilderFactory

public final class BuilderFactory
extends Object

This is an abstract factory that returns a Builder mapped to a Node. The mapping is performed by executing Chain Globals.FIND_BUILDER_COMMAND_NAME in Globals.BUILDER_CATALOG_NAME defined in Globals.BUILDER_RESOURCE_NAME.


Method Summary
protected static Catalog getCatalog()
           Returns catalog Globals.BUILDER_CATALOG_NAME from file Globals.BUILDER_RESOURCE_NAME.
static Builder getRenderer(Node node)
           Returns a Builder mapped to a Node by executing chain command Globals.FIND_BUILDER_COMMAND_NAME The BuilderRuleContext is passed to the chain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCatalog

protected static Catalog getCatalog()
                             throws Exception

Returns catalog Globals.BUILDER_CATALOG_NAME from file Globals.BUILDER_RESOURCE_NAME.

Returns:
commons chains catalog
Throws:
Exception - finding catalog

getRenderer

public static Builder getRenderer(Node node)

Returns a Builder mapped to a Node by executing chain command Globals.FIND_BUILDER_COMMAND_NAME The BuilderRuleContext is passed to the chain.

Parameters:
node - the markup node
Returns:
builder that handles the node


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.