| java.lang.Object org.objectweb.jonas_ejb.genic.VContextFactory
VContextFactory | public class VContextFactory (Code) | | This class allows to create the Velocity Context used to build the generated
sources with the Velocity templates.
author: : Helene Joanin (Bull) : Initial developer |
Method Summary | |
public static VelocityContext | create(BeanDesc dd, int srcType) Creates the Velocity Context used to build the generated sources with the Velocity templates. | public static Boolean | pkIsUserClass(String classname) | public static String | toString(VelocityContext vc) |
create | public static VelocityContext create(BeanDesc dd, int srcType) throws GenICException(Code) | | Creates the Velocity Context used to build the generated sources with the Velocity templates.
There are different types of Velocity Context :
HOME, LOCAL_HOME, REMOTE, LOCAL, ENTITY_HANDLE, ENTITY_CMP_JDBC, ...
See Also: Source.java See Also: for type definitions. Parameters: dd - The bean Deployment Descriptor Parameters: srcType - the type of Velocity Context Return the Velocity Context associated to the gievn bean for the given source to generate throws: GenICException - in error case |
pkIsUserClass | public static Boolean pkIsUserClass(String classname)(Code) | | Parameters: classname - name of a class true if the class is a 'user' class, false if it's a java class |
toString | public static String toString(VelocityContext vc)(Code) | | Parameters: vc - VelocityContext to trace Return a string representation of the given VelocityContext for debug use |
|
|