| com.caucho.ejb.gen.BeanGenerator com.caucho.ejb.gen.SessionGenerator
All known Subclasses: com.caucho.ejb.gen.StatefulGenerator, com.caucho.ejb.gen.StatelessGenerator,
SessionGenerator | abstract public class SessionGenerator extends BeanGenerator (Code) | | Generates the skeleton for a session bean.
|
Method Summary | |
public void | addLocal(ApiClass localApi) | public void | addRemote(ApiClass remoteApi) | protected View | createLocalHomeView(ApiClass api) | protected View | createLocalView(ApiClass api) | protected View | createRemoteHomeView(ApiClass api) | protected View | createRemoteView(ApiClass api) | public void | createViews() | protected void | generateCallReflectionGetMethod(JavaWriter out, String methodVar, String methodName, String paramVar, String classVar) Generates a call to get a class method. | abstract protected void | generateContext(JavaWriter out) | protected void | generateInitInjection(JavaWriter out) Generates injection initialization. | protected void | generateInjection(JavaWriter out, InjectionTarget injectionTarget, String value, Class cl, boolean isEscapeString) Generates an individual injection. | protected void | generateInvokeMethod(JavaWriter out) Makes private methods accessible before invoking them. | protected void | generateNewInstance(JavaWriter out, String suffix) | protected void | generateNewRemoteInstance(JavaWriter out, String suffix) | protected void | generateReflectionGetMethod(JavaWriter out) Generates reflection to access a class method. | public ArrayList<ApiClass> | getLocalApi() Returns the local API list. | public ApiClass | getLocalObject() | public ArrayList<ApiClass> | getRemoteApi() Returns the remote API list. | public ApiClass | getRemoteObject() | public View | getView(Class api) | public ArrayList<View> | getViews() | protected boolean | hasMethod(String methodName, Class[] paramTypes) Returns true if the method is implemented. | public void | introspect() Introspects the bean. | public boolean | isStateless() | public void | setLocalHome(ApiClass homeApi) | public void | setLocalObject(ApiClass objectApi) | public void | setRemoteHome(ApiClass homeApi) | public void | setRemoteObject(ApiClass objectApi) |
addRemote | public void addRemote(ApiClass remoteApi)(Code) | | Adds a remote
|
createLocalHomeView | protected View createLocalHomeView(ApiClass api)(Code) | | Generates the local home view for the given class
|
createLocalView | protected View createLocalView(ApiClass api)(Code) | | Generates the local view for the given class
|
createRemoteHomeView | protected View createRemoteHomeView(ApiClass api)(Code) | | Generates the remote home view for the given class
|
createRemoteView | protected View createRemoteView(ApiClass api)(Code) | | Generates the remote view for the given class
|
createViews | public void createViews()(Code) | | Generates the views for the bean
|
generateInvokeMethod | protected void generateInvokeMethod(JavaWriter out) throws IOException(Code) | | Makes private methods accessible before invoking them.
|
generateReflectionGetMethod | protected void generateReflectionGetMethod(JavaWriter out) throws IOException(Code) | | Generates reflection to access a class method.
|
getRemoteObject | public ApiClass getRemoteObject()(Code) | | Gets the remote object
|
getView | public View getView(Class api)(Code) | | Returns the view matching the given class
|
hasMethod | protected boolean hasMethod(String methodName, Class[] paramTypes)(Code) | | Returns true if the method is implemented.
|
introspect | public void introspect()(Code) | | Introspects the bean.
|
isStateless | public boolean isStateless()(Code) | | |
setLocalHome | public void setLocalHome(ApiClass homeApi)(Code) | | Sets the local home
|
setLocalObject | public void setLocalObject(ApiClass objectApi)(Code) | | Sets the local object
|
setRemoteHome | public void setRemoteHome(ApiClass homeApi)(Code) | | Sets the remote home
|
setRemoteObject | public void setRemoteObject(ApiClass objectApi)(Code) | | Sets the remote object
|
|
|