|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.ejb.gen.View
public abstract class View
Represents a public interface to a bean, e.g. a local stateful view
| Field Summary | |
|---|---|
protected ApiClass |
_api
|
protected BeanGenerator |
_bean
|
| Constructor Summary | |
|---|---|
protected |
View(BeanGenerator bean,
ApiClass api)
|
| Method Summary | |
|---|---|
abstract void |
generate(JavaWriter out)
Generates the view code. |
void |
generateBusinessConstructor(JavaWriter out)
Generates constructor addiontions |
void |
generateBusinessConstructor(JavaWriter out,
java.util.HashMap map)
Generates constructor addiontions |
void |
generateBusinessMethods(JavaWriter out)
Generates view's business methods |
void |
generateBusinessPrologue(JavaWriter out)
Generates prologue additions |
void |
generateBusinessPrologue(JavaWriter out,
java.util.HashMap map)
Generates prologue additions |
void |
generateContextHomeConstructor(JavaWriter out)
Generates context home's constructor |
void |
generateContextObjectConstructor(JavaWriter out)
Generates context object's constructor |
void |
generateContextPrologue(JavaWriter out)
Generates prologue for the context. |
void |
generateDestroy(JavaWriter out)
Generates any global destroy |
void |
generateTimer(JavaWriter out)
Generates timer code |
protected ApiClass |
getApi()
Returns the API class. |
java.lang.reflect.Method |
getAroundInvokeMethod()
Returns any around-invoke method |
protected BeanGenerator |
getBean()
Returns the owning bean. |
protected java.lang.String |
getBeanClassName()
|
protected ApiClass |
getEjbClass()
Returns the bean's ejbclass |
static java.lang.String |
getFullMethodName(ApiMethod method)
Returns a full method name with arguments. |
static java.lang.String |
getFullMethodName(java.lang.reflect.Method method)
Returns a full method name with arguments. |
static java.lang.String |
getFullMethodName(java.lang.String methodName,
java.lang.Class[] params)
Returns a full method name with arguments. |
java.util.ArrayList<? extends BusinessMethodGenerator> |
getMethods()
Returns the introspected methods |
protected java.lang.String |
getViewClassName()
|
void |
introspect()
Introspects the view |
boolean |
isRemote()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final BeanGenerator _bean
protected final ApiClass _api
| Constructor Detail |
|---|
protected View(BeanGenerator bean,
ApiClass api)
| Method Detail |
|---|
protected BeanGenerator getBean()
protected ApiClass getEjbClass()
protected java.lang.String getViewClassName()
protected java.lang.String getBeanClassName()
public boolean isRemote()
protected ApiClass getApi()
public void introspect()
public java.util.ArrayList<? extends BusinessMethodGenerator> getMethods()
public java.lang.reflect.Method getAroundInvokeMethod()
public void generateContextPrologue(JavaWriter out)
throws java.io.IOException
java.io.IOException
public void generateContextHomeConstructor(JavaWriter out)
throws java.io.IOException
java.io.IOException
public void generateContextObjectConstructor(JavaWriter out)
throws java.io.IOException
java.io.IOException
public void generateTimer(JavaWriter out)
throws java.io.IOException
java.io.IOException
public void generateDestroy(JavaWriter out)
throws java.io.IOException
java.io.IOException
public abstract void generate(JavaWriter out)
throws java.io.IOException
java.io.IOException
public void generateBusinessConstructor(JavaWriter out)
throws java.io.IOException
java.io.IOException
public void generateBusinessConstructor(JavaWriter out,
java.util.HashMap map)
throws java.io.IOException
java.io.IOException
public void generateBusinessPrologue(JavaWriter out)
throws java.io.IOException
java.io.IOException
public void generateBusinessPrologue(JavaWriter out,
java.util.HashMap map)
throws java.io.IOException
java.io.IOException
public void generateBusinessMethods(JavaWriter out)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String getFullMethodName(ApiMethod method)
public static java.lang.String getFullMethodName(java.lang.reflect.Method method)
public static java.lang.String getFullMethodName(java.lang.String methodName,
java.lang.Class[] params)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||