com.caucho.amber.gen
Class ListenerComponent

java.lang.Object
  extended by com.caucho.java.gen.ClassComponent
      extended by com.caucho.amber.gen.ListenerComponent

public class ListenerComponent
extends ClassComponent

Generates the Java code for the wrapped entity listener object.


Constructor Summary
ListenerComponent()
           
 
Method Summary
 void generate(JavaWriter out)
          Starts generation of the Java code
 java.lang.String getBaseClassName()
          Gets the base class name
 java.lang.String getBeanClassName()
          Get bean class name.
 java.lang.String getClassName()
          Sets the ext class name
 void setBaseClassName(java.lang.String baseClassName)
          Sets the base class name
 void setExtClassName(java.lang.String extClassName)
          Sets the ext class name
 void setListenerType(ListenerType listenerType)
          Sets the bean info for the generator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenerComponent

public ListenerComponent()
Method Detail

setListenerType

public void setListenerType(ListenerType listenerType)
Sets the bean info for the generator


setBaseClassName

public void setBaseClassName(java.lang.String baseClassName)
Sets the base class name


getBaseClassName

public java.lang.String getBaseClassName()
Gets the base class name


setExtClassName

public void setExtClassName(java.lang.String extClassName)
Sets the ext class name


getClassName

public java.lang.String getClassName()
Sets the ext class name


getBeanClassName

public java.lang.String getBeanClassName()
Get bean class name.


generate

public void generate(JavaWriter out)
              throws java.io.IOException
Starts generation of the Java code

Overrides:
generate in class ClassComponent
Parameters:
out - the writer to the output stream.
Throws:
java.io.IOException