org.apache.tapestry.enhance
Class InjectListenerRegistrationWorker

java.lang.Object
  extended by org.apache.tapestry.enhance.InjectListenerRegistrationWorker
All Implemented Interfaces:
EnhancementWorker

public class InjectListenerRegistrationWorker
extends java.lang.Object
implements EnhancementWorker

Checks to see if the component implements a specific interface, and adds code to the component's finishLoad() method to register (with the page) for such notifications.

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
InjectListenerRegistrationWorker()
           
 
Method Summary
 void performEnhancement(EnhancementOperation op, IComponentSpecification spec)
           
 void setListenerInterface(java.lang.Class listenerInterface)
           
 void setRegisterMethodName(java.lang.String registerMethodName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InjectListenerRegistrationWorker

public InjectListenerRegistrationWorker()
Method Detail

performEnhancement

public void performEnhancement(EnhancementOperation op,
                               IComponentSpecification spec)
Specified by:
performEnhancement in interface EnhancementWorker

setListenerInterface

public void setListenerInterface(java.lang.Class listenerInterface)

setRegisterMethodName

public void setRegisterMethodName(java.lang.String registerMethodName)