org.objectweb.jonas.ws.axis
Class ModuleEngineConfigurationFactory

java.lang.Object
  extended byorg.objectweb.jonas.ws.axis.ModuleEngineConfigurationFactory
All Implemented Interfaces:
org.apache.axis.EngineConfigurationFactory

public class ModuleEngineConfigurationFactory
extends java.lang.Object
implements org.apache.axis.EngineConfigurationFactory

This is the JOnAS implementation of EngineConfigurationFactory. It override Axis default one.

Author:
Guillaume Sauthier

Field Summary
static java.lang.String AXIS_CLIENT_CONFIG_PARAM
          client config parameter name in jonas-init-param
protected static java.lang.String CLIENT_CONFIG_FILE
          Default client config file name
static java.lang.String OPTION_CLIENT_CONFIG_FILE
          Property name for client config file
 
Fields inherited from interface org.apache.axis.EngineConfigurationFactory
SYSTEM_PROPERTY_NAME
 
Constructor Summary
protected ModuleEngineConfigurationFactory(CompNamingContext ctx)
          Create the default engine configuration and detect whether the user has overridden this with their own.
 
Method Summary
 org.apache.axis.EngineConfiguration getClientEngineConfig()
          Get a client engine configuration.
 org.apache.axis.EngineConfiguration getServerEngineConfig()
          Return null.
static org.apache.axis.EngineConfigurationFactory newFactory(java.lang.Object param)
          Creates and returns a new ModuleEngineConfigurationFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPTION_CLIENT_CONFIG_FILE

public static final java.lang.String OPTION_CLIENT_CONFIG_FILE
Property name for client config file

See Also:
Constant Field Values

CLIENT_CONFIG_FILE

protected static final java.lang.String CLIENT_CONFIG_FILE
Default client config file name

See Also:
Constant Field Values

AXIS_CLIENT_CONFIG_PARAM

public static final java.lang.String AXIS_CLIENT_CONFIG_PARAM
client config parameter name in jonas-init-param

See Also:
Constant Field Values
Constructor Detail

ModuleEngineConfigurationFactory

protected ModuleEngineConfigurationFactory(CompNamingContext ctx)
Create the default engine configuration and detect whether the user has overridden this with their own.

Parameters:
ctx - a CompNamingContext where we can find :
- serviceRef : the service-ref where we can find config information - parentCL : the classLoader used to read config file
Method Detail

newFactory

public static org.apache.axis.EngineConfigurationFactory newFactory(java.lang.Object param)
Creates and returns a new ModuleEngineConfigurationFactory. If a factory cannot be created, return 'null'. The factory may return non-NULL only if:
- it knows what to do with the param (param != null)
- it can find it's configuration information

Parameters:
param - The object used to retrieved the right Factory instance
Returns:
null if param is not a CompNamingContext, or return the JOnAS EngineConfigurationFactory used for 1 service-ref element.

getClientEngineConfig

public org.apache.axis.EngineConfiguration getClientEngineConfig()
Get a client engine configuration. Try to load it from a File or as a ClassLoader Resource. Return default CLient config if no resource found.

Specified by:
getClientEngineConfig in interface org.apache.axis.EngineConfigurationFactory
Returns:
a client EngineConfiguration

getServerEngineConfig

public org.apache.axis.EngineConfiguration getServerEngineConfig()
Return null. (Not used for WebService clients)

Specified by:
getServerEngineConfig in interface org.apache.axis.EngineConfigurationFactory
Returns:
null