org.apache.cocoon.woody.binding
Class InsertBeanJXPathBinding
java.lang.Object
org.apache.cocoon.woody.binding.JXPathBindingBase
org.apache.cocoon.woody.binding.InsertBeanJXPathBinding
- All Implemented Interfaces:
- LogEnabled, Binding
public class InsertBeanJXPathBinding
- extends JXPathBindingBase
InsertBeanJXPathBinding provides an implementation of a Binding
that inserts a new instance of the specified bean (classname) into the target
back-end model upon save.
NOTES:
- This Binding does not perform any actions when loading.
- Version:
- CVS $Id: InsertBeanJXPathBinding.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Constructor Summary |
InsertBeanJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts,
String className,
String addMethod)
Constructs InsertBeanJXPathBinding |
Method Summary |
void |
doLoad(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
Do-nothing implementation of the interface. |
void |
doSave(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
Registers a JXPath Factory on the JXPath Context. |
String |
toString()
|
InsertBeanJXPathBinding
public InsertBeanJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts,
String className,
String addMethod)
- Constructs InsertBeanJXPathBinding
doLoad
public void doLoad(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
- Do-nothing implementation of the interface.
- Specified by:
doLoad
in class JXPathBindingBase
doSave
public void doSave(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
throws BindingException
- Registers a JXPath Factory on the JXPath Context.
The factory will insert a new instance of the specified bean (classname)
inside this object into the target objectmodel.
- Specified by:
doSave
in class JXPathBindingBase
- Throws:
BindingException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.