org.objectweb.jonas_ws.wsgen.generator.axis
Class VContextFactory

java.lang.Object
  extended byorg.objectweb.jonas_ws.wsgen.generator.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)

Field Summary
static java.lang.String EJB_PROVIDER
           
static java.lang.String MAPPINGS
           
static java.lang.String PORT_COMPONENTS
           
static java.lang.String PROVIDER
           
static java.lang.String RPC_PROVIDER
           
 
Constructor Summary
VContextFactory()
           
 
Method Summary
static org.apache.velocity.VelocityContext getContext(ServiceDesc sd)
          Creates the Velocity Context used to build the generated files with the Velocity templates.
static org.apache.velocity.VelocityContext getContext(ServiceRefDesc sr)
          Creates the Velocity Context used to build the generated files with the Velocity templates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROVIDER

public static final java.lang.String PROVIDER
See Also:
Constant Field Values

EJB_PROVIDER

public static final java.lang.String EJB_PROVIDER
See Also:
Constant Field Values

RPC_PROVIDER

public static final java.lang.String RPC_PROVIDER
See Also:
Constant Field Values

MAPPINGS

public static final java.lang.String MAPPINGS
See Also:
Constant Field Values

PORT_COMPONENTS

public static final java.lang.String PORT_COMPONENTS
See Also:
Constant Field Values
Constructor Detail

VContextFactory

public VContextFactory()
Method Detail

getContext

public static org.apache.velocity.VelocityContext getContext(ServiceDesc sd)
Creates the Velocity Context used to build the generated files with the Velocity templates.

Parameters:
sd - The ServiceDesc Deployment Descriptor
Returns:
a VelocityContext customized with the SD

getContext

public static org.apache.velocity.VelocityContext getContext(ServiceRefDesc sr)
Creates the Velocity Context used to build the generated files with the Velocity templates.

Parameters:
sr - The ServiceRefDesc Deployment Descriptor
Returns:
a VelocityContext customized with the SR