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

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.forms.event.impl.JavaClassWidgetListenerBuilder
All Implemented Interfaces:
Contextualizable, LogEnabled, Serviceable, ThreadSafe, WidgetListenerBuilder

public class JavaClassWidgetListenerBuilder
extends AbstractLogEnabled
implements WidgetListenerBuilder, ThreadSafe, Contextualizable, Serviceable

A WidgetListenerBuilder that creates java classes.

The syntax for this listener is as follows :

   <java class="com.my.SuperListener"/>
 

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

Field Summary
protected  Context context
           
protected  ServiceManager manager
           
 
Fields inherited from interface org.apache.cocoon.forms.event.WidgetListenerBuilder
ROLE
 
Constructor Summary
JavaClassWidgetListenerBuilder()
           
 
Method Summary
 WidgetListener buildListener(Element element, Class listenerClass)
           
 void contextualize(Context context)
           
 void service(ServiceManager manager)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manager

protected ServiceManager manager

context

protected Context context
Constructor Detail

JavaClassWidgetListenerBuilder

public JavaClassWidgetListenerBuilder()
Method Detail

contextualize

public void contextualize(Context context)
                   throws ContextException
Specified by:
contextualize in interface Contextualizable
Throws:
ContextException
See Also:
Contextualizable.contextualize(org.apache.avalon.framework.context.Context)

service

public void service(ServiceManager manager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException
See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)

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-2010 The Apache Software Foundation. All Rights Reserved.