org.ow2.jonas.generators.wsgen.generator.axis
Class VContextFactory

java.lang.Object
  extended by org.ow2.jonas.generators.wsgen.generator.axis.VContextFactory

public class VContextFactory
extends 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 String EJB_PROVIDER
          JOnAS EJB Provider name
static String MAPPINGS
          Mapping property name
static String PORT_COMPONENTS
          Port Components list property name
static String PROVIDER
          Provider property name
static String RPC_PROVIDER
          Default RPC Provider name
 
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 String PROVIDER
Provider property name

See Also:
Constant Field Values

EJB_PROVIDER

public static final String EJB_PROVIDER
JOnAS EJB Provider name

See Also:
Constant Field Values

RPC_PROVIDER

public static final String RPC_PROVIDER
Default RPC Provider name

See Also:
Constant Field Values

MAPPINGS

public static final String MAPPINGS
Mapping property name

See Also:
Constant Field Values

PORT_COMPONENTS

public static final String PORT_COMPONENTS
Port Components list property name

See Also:
Constant Field Values
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


Copyright © 2010 OW2 Consortium. All Rights Reserved.