com.caucho.ejb.gen
Class StatelessObjectView

java.lang.Object
  extended by com.caucho.ejb.gen.View
      extended by com.caucho.ejb.gen.StatelessView
          extended by com.caucho.ejb.gen.StatelessObjectView
Direct Known Subclasses:
StatelessLocalView

public class StatelessObjectView
extends StatelessView

Represents any stateless view.


Field Summary
 
Fields inherited from class com.caucho.ejb.gen.View
_api, _bean
 
Constructor Summary
StatelessObjectView(StatelessGenerator bean, ApiClass api)
           
 
Method Summary
protected  ApiMethod findImplMethod(ApiMethod apiMethod)
           
 void generate(JavaWriter out)
          Generates the view code.
 void generateBean(JavaWriter out)
          Generates the view code.
 void generateContextHomeConstructor(JavaWriter out)
          Generates context home's constructor
 void generateContextPrologue(JavaWriter out)
          Generates prologue for the context.
 void generateCreateProvider(JavaWriter out, java.lang.String var)
          Generates code to create the provider
 void generateDestroy(JavaWriter out)
          Generates code to create the provider
protected  void generateExtends(JavaWriter out)
           
 void generateProxy(JavaWriter out)
          Generates the view code.
 void generateProxyCall(JavaWriter out, java.lang.reflect.Method implMethod)
           
 void generateProxyPool(JavaWriter out)
           
protected  void generateSuper(JavaWriter out, java.lang.String serverVar)
           
 void generateTimer(JavaWriter out)
          Generates timer code
 void introspect()
          Introspects the APIs methods, producing a business method for each.
 void introspectLifecycle(java.lang.Class cl)
          Introspects the lifecycle methods
 void introspectTimer(ApiClass apiClass)
          Introspects the lifecycle methods
 
Methods inherited from class com.caucho.ejb.gen.StatelessView
addBusinessMethod, createMethod, getBeanClassName, getContextClassName, getMethods, getStatelessBean, getViewClassName
 
Methods inherited from class com.caucho.ejb.gen.View
generateBusinessConstructor, generateBusinessConstructor, generateBusinessMethods, generateBusinessPrologue, generateBusinessPrologue, generateContextObjectConstructor, getApi, getAroundInvokeMethod, getBean, getEjbClass, getFullMethodName, getFullMethodName, getFullMethodName, isRemote
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatelessObjectView

public StatelessObjectView(StatelessGenerator bean,
                           ApiClass api)
Method Detail

introspect

public void introspect()
Introspects the APIs methods, producing a business method for each.

Overrides:
introspect in class StatelessView

introspectLifecycle

public void introspectLifecycle(java.lang.Class cl)
Introspects the lifecycle methods


introspectTimer

public void introspectTimer(ApiClass apiClass)
Introspects the lifecycle methods


generateContextPrologue

public void generateContextPrologue(JavaWriter out)
                             throws java.io.IOException
Generates prologue for the context.

Overrides:
generateContextPrologue in class View
Throws:
java.io.IOException

generateContextHomeConstructor

public void generateContextHomeConstructor(JavaWriter out)
                                    throws java.io.IOException
Generates context home's constructor

Overrides:
generateContextHomeConstructor in class View
Throws:
java.io.IOException

generateCreateProvider

public void generateCreateProvider(JavaWriter out,
                                   java.lang.String var)
                            throws java.io.IOException
Generates code to create the provider

Overrides:
generateCreateProvider in class StatelessView
Throws:
java.io.IOException

generateDestroy

public void generateDestroy(JavaWriter out)
                     throws java.io.IOException
Generates code to create the provider

Overrides:
generateDestroy in class View
Throws:
java.io.IOException

generate

public void generate(JavaWriter out)
              throws java.io.IOException
Generates the view code.

Overrides:
generate in class StatelessView
Throws:
java.io.IOException

generateBean

public void generateBean(JavaWriter out)
                  throws java.io.IOException
Generates the view code.

Throws:
java.io.IOException

generateProxy

public void generateProxy(JavaWriter out)
                   throws java.io.IOException
Generates the view code.

Throws:
java.io.IOException

generateExtends

protected void generateExtends(JavaWriter out)
                        throws java.io.IOException
Overrides:
generateExtends in class StatelessView
Throws:
java.io.IOException

generateProxyPool

public void generateProxyPool(JavaWriter out)
                       throws java.io.IOException
Throws:
java.io.IOException

generateProxyCall

public void generateProxyCall(JavaWriter out,
                              java.lang.reflect.Method implMethod)
                       throws java.io.IOException
Throws:
java.io.IOException

generateSuper

protected void generateSuper(JavaWriter out,
                             java.lang.String serverVar)
                      throws java.io.IOException
Overrides:
generateSuper in class StatelessView
Throws:
java.io.IOException

generateTimer

public void generateTimer(JavaWriter out)
                   throws java.io.IOException
Description copied from class: View
Generates timer code

Overrides:
generateTimer in class View
Throws:
java.io.IOException

findImplMethod

protected ApiMethod findImplMethod(ApiMethod apiMethod)
Overrides:
findImplMethod in class StatelessView