org.objectweb.jonas_ws.wsgen
Interface ConfigGenerator

All Known Implementing Classes:
AbsConfigGenerator

public interface ConfigGenerator

This interface provides methods used to generate configuration files for a Web services Engine.

Author:
Xavier Delplanque & Guillaume Sauthier

Field Summary
static java.lang.String DEBUG
           
static java.lang.Boolean DEBUG_DEFAULT
           
static java.lang.String DEFAULT_MAPPING
           
static java.lang.String JAVAC_NAME
           
static java.lang.String JAVAC_NAME_DEFAULT
           
static java.lang.String JAVAC_OPTS
           
static java.lang.String KEEP_GEN
           
static java.lang.Boolean KEEP_GEN_DEFAULT
           
static java.lang.String NO_CONFIG
           
static java.lang.Boolean NO_CONFIG_DEFAULT
           
static java.lang.String PARSING_VAL
           
static java.lang.String SERVLET_CLASS
           
static java.lang.String SERVLET_NAME
           
static java.lang.String VERBOSE
           
static java.lang.Boolean VERBOSE_DEFAULT
           
 
Method Summary
 void clean()
          Remove temp directories.
 void genEjbJarClientConfig(EjbJarManager jm, java.util.Iterator bdIt)
          Generate client configuration files for each ServiceRef of bean descs.
 void genEjbJarEndpointConfig(WarManager wm, WSDeploymentDesc dd)
          Generate endpoint configuration files for the set of ServiceDesc included in WSDeploymentDesc contained in an EjbJar.
 void genWebAppClientConfig(WarManager wm, ServiceRef[] servRefs)
          Generate client configuration files for the list of ServiceRef of a War.
 void genWebAppEndpointConfig(WarManager wm, WSDeploymentDesc dd)
          Generate endpoint configuration files for the set of ServiceDesc included in WSDeploymentDesc contained in a WebApp.
 

Field Detail

VERBOSE

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

DEBUG

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

NO_CONFIG

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

KEEP_GEN

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

PARSING_VAL

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

JAVAC_NAME

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

JAVAC_OPTS

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

SERVLET_CLASS

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

SERVLET_NAME

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

DEFAULT_MAPPING

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

VERBOSE_DEFAULT

public static final java.lang.Boolean VERBOSE_DEFAULT

DEBUG_DEFAULT

public static final java.lang.Boolean DEBUG_DEFAULT

NO_CONFIG_DEFAULT

public static final java.lang.Boolean NO_CONFIG_DEFAULT

KEEP_GEN_DEFAULT

public static final java.lang.Boolean KEEP_GEN_DEFAULT

JAVAC_NAME_DEFAULT

public static final java.lang.String JAVAC_NAME_DEFAULT
See Also:
Constant Field Values
Method Detail

genWebAppEndpointConfig

public void genWebAppEndpointConfig(WarManager wm,
                                    WSDeploymentDesc dd)
                             throws WsGenException
Generate endpoint configuration files for the set of ServiceDesc included in WSDeploymentDesc contained in a WebApp. Common method for all Web Services implementation (Glue/Axis).

Parameters:
wm - the managed war file.
dd - The DeploymentDesc to process (image of a webservices.xml)
Throws:
WsGenException - if generation fails

genWebAppClientConfig

public void genWebAppClientConfig(WarManager wm,
                                  ServiceRef[] servRefs)
                           throws WsGenException
Generate client configuration files for the list of ServiceRef of a War. Common method for all Web Services implementation (Glue/Axis).

Parameters:
wm - the managed war file.
servRefs - The list of ServiceRef to process.
Throws:
WsGenException - if generation fails

genEjbJarEndpointConfig

public void genEjbJarEndpointConfig(WarManager wm,
                                    WSDeploymentDesc dd)
                             throws WsGenException
Generate endpoint configuration files for the set of ServiceDesc included in WSDeploymentDesc contained in an EjbJar. Common method for all Web Services implementation (Glue/Axis).

Parameters:
wm - the war file dispatching request on EJBs endpoint.
dd - The DeploymentDesc to process (image of a webservices.xml)
Throws:
WsGenException - if generation fails

genEjbJarClientConfig

public void genEjbJarClientConfig(EjbJarManager jm,
                                  java.util.Iterator bdIt)
                           throws WsGenException
Generate client configuration files for each ServiceRef of bean descs. Common method for all Web Services implementation (Glue/Axis).

Parameters:
jm - the jar file containing clients.
bdIt - an iterator on a bean desc list
Throws:
WsGenException - if generation fails

clean

public void clean()
Remove temp directories.