com.caucho.ejb.gen
Class StatelessView

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

public class StatelessView
extends View

Represents any stateless view.


Field Summary
 
Fields inherited from class com.caucho.ejb.gen.View
_api, _bean
 
Constructor Summary
StatelessView(StatelessGenerator bean, ApiClass api)
           
 
Method Summary
protected  void addBusinessMethod(ApiMethod apiMethod)
           
protected  BusinessMethodGenerator createMethod(ApiMethod apiMethod, int index)
           
protected  ApiMethod findImplMethod(ApiMethod apiMethod)
           
 void generate(JavaWriter out)
          Generates the view code.
 void generateCreateProvider(JavaWriter out, java.lang.String var)
          Generates code to create the provider
protected  void generateExtends(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
 StatelessGenerator getStatelessBean()
           
protected  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

StatelessView

public StatelessView(StatelessGenerator bean,
                     ApiClass api)
Method Detail

getStatelessBean

public StatelessGenerator getStatelessBean()

getContextClassName

public java.lang.String getContextClassName()

getViewClassName

protected 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

addBusinessMethod

protected void addBusinessMethod(ApiMethod apiMethod)

generateCreateProvider

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

Throws:
java.io.IOException

generateExtends

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

createMethod

protected BusinessMethodGenerator createMethod(ApiMethod apiMethod,
                                               int index)

generate

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

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

generateSuper

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

findImplMethod

protected ApiMethod findImplMethod(ApiMethod apiMethod)