org.apache.cocoon.forms.event.impl
Class JavaClassWidgetListenerBuilder

java.lang.Object
  extended byorg.apache.cocoon.forms.event.impl.JavaClassWidgetListenerBuilder
All Implemented Interfaces:
BeanFactoryAware, WidgetListenerBuilder

public class JavaClassWidgetListenerBuilder
extends Object
implements WidgetListenerBuilder, BeanFactoryAware

A WidgetListenerBuilder that uses Spring beans.

The syntax for this listener is as follows :

   <java ref="spring-bean-id">
     ...
   </java>
 
The Element node denoted by upper snippet is passed to the bean at a method configure(Element e) if it exists.

Version:
$Id: JavaClassWidgetListenerBuilder.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
 
Fields inherited from interface org.apache.cocoon.forms.event.WidgetListenerBuilder
ROLE
 
Constructor Summary
JavaClassWidgetListenerBuilder()
           
 
Method Summary
 WidgetListener buildListener(Element element, Class listenerClass)
           
 void setBeanFactory(BeanFactory beanFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaClassWidgetListenerBuilder

public JavaClassWidgetListenerBuilder()
Method Detail

setBeanFactory

public void setBeanFactory(BeanFactory beanFactory)
                    throws BeansException
Specified by:
setBeanFactory in interface BeanFactoryAware
Throws:
BeansException

buildListener

public WidgetListener buildListener(Element element,
                                    Class listenerClass)
                             throws Exception
Specified by:
buildListener in interface WidgetListenerBuilder
Throws:
Exception
See Also:
WidgetListenerBuilder.buildListener(org.w3c.dom.Element, java.lang.Class)


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.