org.apache.cocoon.forms.binding
Class InsertBeanJXPathBindingBuilder

java.lang.Object
  extended by org.apache.cocoon.forms.binding.JXPathBindingBuilderBase
      extended by org.apache.cocoon.forms.binding.InsertBeanJXPathBindingBuilder
All Implemented Interfaces:
LogEnabled

public class InsertBeanJXPathBindingBuilder
extends JXPathBindingBuilderBase

InsertBeanJXPathBindingBuilder provides a helper class for the Factory implemented in JXPathBindingManager that helps construct the actual InsertBeanJXPathBinding out of the configuration in the provided configElement which looks like:


 <fb:insert-bean classname="..child-bean-class.." addmethod="..method-to-add.."/>
 
or if the add method creates the new instance itself:

 <fb:insert-bean addmethod="..method-to-add.."/>
 

Version:
$Id: InsertBeanJXPathBindingBuilder.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.cocoon.forms.binding.JXPathBindingBuilderBase
JXPathBindingBuilderBase.CommonAttributes
 
Constructor Summary
InsertBeanJXPathBindingBuilder()
           
 
Method Summary
 JXPathBindingBase buildBinding(Element bindingElm, JXPathBindingManager.Assistant assistant)
          Creates an instance of InsertBeanJXPathBinding configured with the nested template of the bindingElm.
 
Methods inherited from class org.apache.cocoon.forms.binding.JXPathBindingBuilderBase
enableLogging, getCommonAttributes, getLogger, mergeCommonAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertBeanJXPathBindingBuilder

public InsertBeanJXPathBindingBuilder()
Method Detail

buildBinding

public JXPathBindingBase buildBinding(Element bindingElm,
                                      JXPathBindingManager.Assistant assistant)
                               throws BindingException
Creates an instance of InsertBeanJXPathBinding configured with the nested template of the bindingElm.

Specified by:
buildBinding in class JXPathBindingBuilderBase
Returns:
JXPathBindingBase
Throws:
BindingException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.