org.objectweb.jonas_ws.wsgen.generator
Class GeneratorFactory

java.lang.Object
  extended byorg.objectweb.jonas_ws.wsgen.generator.GeneratorFactory
Direct Known Subclasses:
AxisGeneratorFactory

public abstract class GeneratorFactory
extends java.lang.Object

a GeneratorFactory has to be extended by specific generation mecanism. It will look in jonas.properties file for a property named :jonas.service.ws.wsgen.generator-factory that is a classname extending GeneratorFactory. By default Axis GeneratorFactory is used.

Author:
Guillaume Sauthier

Field Summary
protected  Generator.Config config
          Configuration to set on instanciated Generator
static java.lang.String GENERATOR_FACTORY
          Generator Factory property name in jonas.properties
static java.lang.String GENERATOR_FACTORY_DEFAULT
          Default GeneratorFactory impl to use
protected static I18n i18n
          i18n
protected static org.objectweb.util.monolog.api.Logger logger
          logger
 
Constructor Summary
GeneratorFactory()
           
 
Method Summary
 Generator.Config getConfiguration()
          Get the Configuration to use with newly created Generator.
static GeneratorFactory getInstance()
          Returns the unique GeneratorFactory instance.
abstract  WsEndpointGenerator newGenerator(ServiceDesc serviceDesc, WsEndpointDDModifier ddm)
          Return a new WsEndpointGenerator for the specific generation mecanism.
abstract  WsClientGenerator newGenerator(ServiceRefDesc serviceRef, WsClientDDModifier ddm, Archive archive)
          Return a new WsClientGenerator for the specific generation mecanism.
 void setConfiguration(Generator.Config config)
          Set the Configuration to use with newly created Generator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GENERATOR_FACTORY

public static final java.lang.String GENERATOR_FACTORY
Generator Factory property name in jonas.properties

See Also:
Constant Field Values

GENERATOR_FACTORY_DEFAULT

public static final java.lang.String GENERATOR_FACTORY_DEFAULT
Default GeneratorFactory impl to use

See Also:
Constant Field Values

i18n

protected static final I18n i18n
i18n


logger

protected static final org.objectweb.util.monolog.api.Logger logger
logger


config

protected Generator.Config config
Configuration to set on instanciated Generator

Constructor Detail

GeneratorFactory

public GeneratorFactory()
Method Detail

getInstance

public static GeneratorFactory getInstance()
                                    throws WsGenException
Returns the unique GeneratorFactory instance.

Returns:
the unique GeneratorFactory instance.
Throws:
WsGenException - When instanciation fails

newGenerator

public abstract WsClientGenerator newGenerator(ServiceRefDesc serviceRef,
                                               WsClientDDModifier ddm,
                                               Archive archive)
                                        throws WsGenException
Return a new WsClientGenerator for the specific generation mecanism.

Parameters:
serviceRef - the service-ref containing information for client side generation process.
ddm - the XML modifier.
archive - the Archive to be modified
Returns:
a new WsClientGenerator.
Throws:
WsGenException

newGenerator

public abstract WsEndpointGenerator newGenerator(ServiceDesc serviceDesc,
                                                 WsEndpointDDModifier ddm)
                                          throws WsGenException
Return a new WsEndpointGenerator for the specific generation mecanism.

Parameters:
serviceDesc - the webservice-description containing information for server side generation process.
ddm - the XML modifier.
Returns:
a new WsEndpointGenerator.
Throws:
WsGenException

setConfiguration

public void setConfiguration(Generator.Config config)
Set the Configuration to use with newly created Generator.

Parameters:
config - the Configuration to use with newly created Generator.

getConfiguration

public Generator.Config getConfiguration()
Get the Configuration to use with newly created Generator.

Returns:
the Configuration to use with newly created Generator