public class DefaultConfiguration extends DelegatingWSDDEngineConfiguration
This class looks up the resources using the thread context class loader, except if it determines
that the context class loader is not set correctly, in which case it falls back to the class
loader that loaded the DefaultConfiguration
class. To determine if the context class
loader is set correctly, the code checks that the DefaultConfiguration
class is visible
to the context class loader.
The algorithm implemented by this class is designed to support the modularized artifacts introduced in Axis 1.4.1. It allows individual JARs to contribute items (transports, handlers, etc.) to the default configuration. The naming convention for the base configuration file (org/apache/axis/<type>/<type>-config.wsdd) was chosen for consistency with Axis 1.4, while META-INF/axis/default-<type>-config.wsdd is new in Axis 1.4.1.
DefaultConfiguration
is also used by FileProvider
to build the configuration if
no existing configuration file is found.
PROPERTY_NAME
Constructor and Description |
---|
DefaultConfiguration(String type)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
configureEngine(AxisEngine engine)
Configure this AxisEngine using whatever data source we have.
|
WSDDDeployment |
getDeployment()
Get the WSDDDeployment for this engine configuration.
|
void |
writeEngineConfig(AxisEngine engine)
Read the configuration from an engine, and store it somehow.
|
getDeployedServices, getGlobalOptions, getGlobalRequest, getGlobalResponse, getHandler, getRoles, getService, getServiceByNamespaceURI, getTransport, getTypeMappingRegistry
public DefaultConfiguration(String type)
type
- the engine type to load the default configuration for; this should be
client
or server
(although any value is supported)public void configureEngine(AxisEngine engine) throws ConfigurationException
EngineConfiguration
engine
- the AxisEngine we'll deploy state toConfigurationException
- if there was a problempublic WSDDDeployment getDeployment()
WSDDEngineConfiguration
public void writeEngineConfig(AxisEngine engine) throws ConfigurationException
EngineConfiguration
engine
- the AxisEngine from which to read state.ConfigurationException
- if there was a problemCopyright © The Apache Software Foundation. All Rights Reserved.