org.objectweb.jonas_ws.wsgen.axis
Class VContextFactory

java.lang.Object
  extended byorg.objectweb.jonas_ws.wsgen.axis.VContextFactory

public class VContextFactory
extends java.lang.Object

This class allows to create the Velocity Context used to build the generated sources with the Velocity templates.

Author:
Xavier Delplanque (Bull)

Constructor Summary
VContextFactory()
           
 
Method Summary
static org.apache.velocity.VelocityContext createEndpointCtx(PortComponentDesc pcd)
          Creates the Velocity Context used to build the generated files with the Velocity templates (used for WebApp).
static org.apache.velocity.VelocityContext createEndpointCtx(WSDeploymentDesc dd)
          Creates the Velocity Context used to build the generated files with the Velocity templates (used for EjbJar).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VContextFactory

public VContextFactory()
Method Detail

createEndpointCtx

public static org.apache.velocity.VelocityContext createEndpointCtx(WSDeploymentDesc dd)
Creates the Velocity Context used to build the generated files with the Velocity templates (used for EjbJar).

Parameters:
dd - The bean Deployment Descriptor
Returns:
a VelocityContext customized with the DD

createEndpointCtx

public static org.apache.velocity.VelocityContext createEndpointCtx(PortComponentDesc pcd)
Creates the Velocity Context used to build the generated files with the Velocity templates (used for WebApp).

Parameters:
pcd - The Port Component describing endpoint to expose.
Returns:
a VelocityContext customized with the PCD