com.caucho.ejb.gen
Class StatefulView

java.lang.Object
  extended by com.caucho.ejb.gen.View
      extended by com.caucho.ejb.gen.StatefulView
Direct Known Subclasses:
StatefulHomeView, StatefulObjectView

public abstract class StatefulView
extends View

Represents a public interface to a stateful bean, e.g. a stateful view


Field Summary
 
Fields inherited from class com.caucho.ejb.gen.View
_api, _bean
 
Constructor Summary
StatefulView(StatefulGenerator bean, ApiClass api)
           
 
Method Summary
protected  BusinessMethodGenerator createMethod(ApiMethod apiMethod, int index)
           
protected  ApiMethod findImplMethod(ApiMethod apiMethod)
           
 void generate(JavaWriter out)
          Generates the view code.
protected  void generateBean(JavaWriter out)
           
protected  void generateClassContent(JavaWriter out)
           
 void generateCreateProvider(JavaWriter out, java.lang.String var)
          Generates code to create the provider
protected  void generateExtends(JavaWriter out)
           
protected  void generateSessionProvider(JavaWriter out)
           
protected  void generateSuper(JavaWriter out, java.lang.String serverVar)
           
protected  java.lang.String getBeanClassName()
           
 java.lang.String getContextClassName()
           
 java.util.ArrayList<? extends BusinessMethodGenerator> getMethods()
          Returns the introspected methods
 StatefulGenerator getSessionBean()
           
protected abstract  java.lang.String getViewClassName()
           
 void introspect()
          Introspects the APIs methods, producing a business method for each.
 
Methods inherited from class com.caucho.ejb.gen.View
generateBusinessConstructor, generateBusinessConstructor, generateBusinessMethods, generateBusinessPrologue, generateBusinessPrologue, generateContextHomeConstructor, generateContextObjectConstructor, generateContextPrologue, generateDestroy, generateTimer, 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

StatefulView

public StatefulView(StatefulGenerator bean,
                    ApiClass api)
Method Detail

getSessionBean

public StatefulGenerator getSessionBean()

getContextClassName

public java.lang.String getContextClassName()

getViewClassName

protected abstract java.lang.String getViewClassName()
Overrides:
getViewClassName in class View

getBeanClassName

protected java.lang.String getBeanClassName()
Overrides:
getBeanClassName in class View

getMethods

public java.util.ArrayList<? extends BusinessMethodGenerator> getMethods()
Returns the introspected methods

Overrides:
getMethods in class View

introspect

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

Overrides:
introspect in class View

generateCreateProvider

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

Throws:
java.io.IOException

generate

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

Specified by:
generate in class View
Throws:
java.io.IOException

generateBean

protected void generateBean(JavaWriter out)
                     throws java.io.IOException
Throws:
java.io.IOException

generateClassContent

protected void generateClassContent(JavaWriter out)
                             throws java.io.IOException
Throws:
java.io.IOException

generateSessionProvider

protected void generateSessionProvider(JavaWriter out)
                                throws java.io.IOException
Throws:
java.io.IOException

createMethod

protected BusinessMethodGenerator createMethod(ApiMethod apiMethod,
                                               int index)

generateSuper

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

generateExtends

protected void generateExtends(JavaWriter out)
                        throws java.io.IOException
Throws:
java.io.IOException

findImplMethod

protected ApiMethod findImplMethod(ApiMethod apiMethod)