Method Summary |
|
public void | addBeanDependency(String ejbName) Add a bean dependency. |
public void | addBuilderProgram(ConfigProgram init) Adds an undefined value, e.g. |
public void | addBusinessLocal(Class localClass) |
public void | addBusinessRemote(Class remoteClass) |
public void | addDepend(Path path) Add a dependency. |
public void | addDependency(PersistentDependency depend) Add a dependency. |
public void | addDependency(Class cl) Add a dependency. |
public void | addDependencyList(ArrayList<PersistentDependency> dependList) Adds a list of dependencies. |
protected void | addImports(BeanAssembler assembler) Adds the assemblers. |
public void | addInitProgram(ConfigProgram init) Adds an init program. |
public void | addInterceptor(Interceptor interceptor) Adds a new interceptor. |
public void | addMethod(EjbMethodPattern method) Adds a method. |
public void | addPostConstruct(PostConstructType postConstruct) |
public void | addRemoveMethod(RemoveMethod removeMethod) |
public void | assembleBeanMethods() Introspects the bean's methods. |
public GenClass | assembleGenerator(String fullClassName) Assembles the generator. |
protected void | assembleHomeMethods(BeanAssembler assembler, BaseClass baseClass, String contextClassName, ApiClass homeClass, String prefix) |
protected void | assembleMethods(BeanAssembler assembler, String fullClassName) Assembles the generator methods. |
protected void | assembleMethods(BeanAssembler assembler, ViewClass view, String contextClassName, ArrayList<ApiMethod> methods, String prefix) Assembles methods. |
protected void | assembleViews(BeanAssembler assembler, String fullClassName) Assembles the generator methods. |
public boolean | classHasMethod(ApiMethod method, ApiClass cl) Tests is a method is declared in a class. |
public void | configureAmber(AmberConfig config) Configure for amber. |
public boolean | containsInterceptor(String interceptorClassName) Returns true if the interceptor is already configured. |
protected BeanAssembler | createAssembler(String fullClassName) Creates the assembler for the bean. |
protected BeanGenerator | createBeanGenerator() |
protected EjbHomeView | createHomeView(ApiClass homeClass, String prefix) Creates a home view. |
public MessageDestinationRef | createMessageDestinationRef() |
public EjbMethodPattern | createMethod(MethodSignature sig) Adds a method. |
protected EjbObjectView | createObjectView(ArrayList<ApiClass> apiList, String prefix, String suffix) Creates an object view. |
protected EjbObjectView | createRemoteObjectView(ArrayList<ApiClass> apiList, String prefix, String suffix) |
protected void | createViews21() Creates the views. |
public AbstractServer | deployServer(EjbContainer ejbContainer, JavaClassGenerator javaGen) Deploys the bean. |
public ConfigException | error(String msg) Returns an error. |
public RuntimeException | error(Exception e) Returns an error. |
protected ApiMethod | findFirstCreateMethod(ApiClass cl) |
public static ApiMethod | findMethod(MethodSignature sig, ApiClass cl, String intf) Finds the method in the class. |
public static ApiMethod | findMethod(ArrayList<ApiMethod> methods, ApiMethod method) Finds the method in the class. |
Class | findMissingException(ApiMethod method, Class[] exn) Finds any exception in the exception array that the method isn't
throwing.
Parameters: method - the method which should throw a superset of exceptions. Parameters: exn - an array of exceptions the method should throw. |
public void | generate(JavaClassGenerator javaGen, boolean isAutoCompile) Generates the class. |
public String | getAroundInvokeMethodName() |
public ArrayList<String> | getBeanDependList() Gets the bean depend list. |
public ClassLoader | getClassLoader() Returns the class loader. |
public static String | getClassName(Class cl) Returns a printable version of a class. |
public EjbConfig | getConfig() |
public ArrayList<PersistentDependency> | getDependList() Gets the depend list. |
public Class | getEJBClass() Gets the ejb implementation class. |
public String | getEJBClassName() Gets the ejb implementation class. |
public ApiClass | getEJBClassWrapper() Gets the ejb implementation class. |
public String | getEJBFullClassName() Gets the ejb implementation class. |
public String | getEJBKind() Returns the kind of bean. |
public String | getEJBModuleName() |
public String | getEJBName() |
public EjbContainer | getEjbContainer() |
public String | getFilename() |
public String | getFullImplName() Gets the implementation class name. |
public static String | getFullMethodName(ApiMethod method) Returns a full method name with arguments. |
public static String | getFullMethodName(String methodName, Class[] params) Returns a full method name with arguments. |
public ContainerProgram | getInitProgram() Gets the init program. |
public Interceptor | getInterceptor(String interceptorClassName) Returns the interceptor for a given class name. |
public ArrayList<Interceptor> | getInterceptors() Returns the interceptors. |
public ArrayList<Interceptor> | getInvokeInterceptors(String methodName) Returns the interceptors. |
public int | getLine() |
public ApiClass | getLocalHome() Gets the local home interface class. |
public ArrayList<ApiClass> | getLocalList() Gets the local interface class. |
public String | getLocation() |
public String | getMappedName() The mapped-name is the published name
used by IIOP, Hessian, and jndi-remote-prefix, jndi-local-prefix. |
public ApiMethod | getMethod(String methodName, Class[] paramTypes) Finds the method in the class. |
public static ApiMethod | getMethod(ApiClass cl, ApiMethod sourceMethod) Finds the method in the class. |
public static ApiMethod | getMethod(ArrayList<ApiClass> apiList, String name, Class[] param) Finds the method in the class. |
public static ApiMethod | getMethod(ApiClass cl, String name, Class[] param) Finds the method in the class. |
public ArrayList<EjbMethodPattern> | getMethodList() returns the method list. |
public EjbMethodPattern | getMethodPattern(ApiMethod method, String intf) Gets the best method. |
public static ArrayList<ApiMethod> | getMethods(ArrayList<ApiClass> apiList) Returns all the method in the class. |
public Class | getRemoteClass() Gets the remote class. |
public ApiClass | getRemoteHome() Gets the ejb implementation class. |
public Class | getRemoteHomeClass() Gets the remote home class. |
public ArrayList<ApiClass> | getRemoteList() Gets the remote interface class. |
public RemoveMethod | getRemoveMethod(Method method) Returns the remove-method for the given method. |
public ArrayList<RemoveMethod> | getRemoveMethods() Returns the remove-method list. |
public CallChain | getSecurityChain(CallChain next, ApiMethod method, String prefix) |
public ContainerProgram | getServerProgram() Gets the server program. |
public static String | getShortClassName(Class cl) Returns a printable version of a class. |
public String | getSkeletonName() |
public String | getTimeoutMethodName() Returns the timeout method name. |
public TransactionAttributeType | getTransactionAttribute(ApiMethod method, String intf) Returns the matching transaction attribute. |
public CallChain | getTransactionChain(CallChain next, ApiMethod apiMethod, ApiMethod implMethod, String prefix) |
public long | getTransactionTimeout() Gets the transaction timeout. |
public boolean | hasException(ApiMethod method, Class exn) |
public void | init() Configure initialization. |
public void | initIntrospect() Configure initialization. |
protected void | introspect() |
protected void | introspectBean(ApiClass type, String defaultName) |
protected EjbBaseMethod | introspectEJBMethod(ApiMethod method) Introspects an ejb method. |
public boolean | isAllowPOJO() Return true if POJO are allowed. |
public boolean | isCMP() |
public boolean | isCMP1() |
public boolean | isContainerTransaction() Returns true if the transaction type is container. |
public boolean | isEJB3() |
public static boolean | isEquiv(ApiMethod oldMethod, ApiMethod method) True if we've already handled the method. |
public static boolean | isMatch(ApiMethod methodA, ApiMethod methodB) |
public static boolean | isMatch(ApiMethod method, String name, Class[] param) |
protected Class | loadClass(String className) |
public void | setAllowPOJO(boolean allowPOJO) Sets true if POJO are allowed. |
public void | setAroundInvoke(AroundInvokeConfig aroundInvoke) |
public void | setAroundInvokeMethodName(String aroundInvokeMethodName) |
public void | setConfigLocation(String filename, int line) |
public void | setContainerTransaction(boolean isContainerTransaction) Returns true if the transaction type is container. |
public void | setEJBClass(Class ejbClass) Sets the ejb implementation class. |
public void | setEJBClassWrapper(ApiClass ejbClass) Sets the ejb implementation class. |
public void | setEJBName(String ejbName) |
public void | setHome(Class homeClass) Sets the remote home interface class. |
public void | setInit(ContainerProgram init) |
public void | setLocal(Class local) |
public void | setLocalHome(Class localHomeClass) |
public void | setLocalHomeWrapper(ApiClass localHome) Sets the local home interface class. |
public void | setLocalWrapper(ApiClass local) Sets the local interface class. |
public void | setLocation(String location) |
public void | setMappedName(String mappedName) The mapped-name is the remote published name
used by IIOP, Hessian, and jndi-remote-prefix, jndi-local-prefix. |
public void | setRemote(Class remote) |
public void | setRemoteHomeWrapper(ApiClass remoteHome) Sets the remote home interface class. |
public void | setRemoteWrapper(ApiClass remote) Sets the remote interface class. |
public void | setSecurityIdentity(EjbSecurityIdentity securityIdentity) |
public void | setTransactionTimeout(Period timeout) Sets the transaction timeout. |
public String | toString() |
public void | validateException(ApiMethod method, Class e) |
public void | validateExceptions(ApiMethod method, Class[] exn) Check that the method throws the expected exceptions. |
public void | validateExceptions(ApiMethod caller, ApiMethod callee) |
protected void | validateImplMethod(ApiMethod method) Validates an implementation method. |
protected ApiMethod | validateMethod(String methodName, Class[] param) |
protected ApiMethod | validateMethod(String methodName, Class[] param, ApiMethod sourceMethod, ApiClass sourceClass) Check that a method exists, is public and is not abstract. |
protected ApiMethod | validateMethod(String methodName, Class[] param, ApiMethod sourceMethod, ApiClass sourceClass, boolean isOptional) Check that a method exists, is public and is not abstract. |
protected ApiMethod | validateNonFinalMethod(String methodName, Class[] param, boolean isOptional) |
protected ApiMethod | validateNonFinalMethod(String methodName, Class[] param) |
protected ApiMethod | validateNonFinalMethod(String methodName, Class[] param, ApiMethod sourceMethod, ApiClass sourceClass) |
protected ApiMethod | validateNonFinalMethod(String methodName, Class[] param, ApiMethod sourceMethod, ApiClass sourceClass, boolean isOptional) Check that a method exists, is public, not abstract, and not final. |
protected void | validatePublicMethod(ApiMethod method) Check that a method is public. |
protected void | validateRemote(ApiClass objectClass) Validates the remote interface. |