|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.ejb.gen.View
com.caucho.ejb.gen.StatefulView
public abstract class StatefulView
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatefulView(StatefulGenerator bean,
ApiClass api)
| Method Detail |
|---|
public StatefulGenerator getSessionBean()
public java.lang.String getContextClassName()
protected abstract java.lang.String getViewClassName()
getViewClassName in class Viewprotected java.lang.String getBeanClassName()
getBeanClassName in class Viewpublic java.util.ArrayList<? extends BusinessMethodGenerator> getMethods()
getMethods in class Viewpublic void introspect()
introspect in class View
public void generateCreateProvider(JavaWriter out,
java.lang.String var)
throws java.io.IOException
java.io.IOException
public void generate(JavaWriter out)
throws java.io.IOException
generate in class Viewjava.io.IOException
protected void generateBean(JavaWriter out)
throws java.io.IOException
java.io.IOException
protected void generateClassContent(JavaWriter out)
throws java.io.IOException
java.io.IOException
protected void generateSessionProvider(JavaWriter out)
throws java.io.IOException
java.io.IOException
protected BusinessMethodGenerator createMethod(ApiMethod apiMethod,
int index)
protected void generateSuper(JavaWriter out,
java.lang.String serverVar)
throws java.io.IOException
java.io.IOException
protected void generateExtends(JavaWriter out)
throws java.io.IOException
java.io.IOExceptionprotected ApiMethod findImplMethod(ApiMethod apiMethod)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||