Package org.apache.axis
Interface EngineConfiguration
- All Known Subinterfaces:
WSDDEngineConfiguration
- All Known Implementing Classes:
BasicClientConfig
,BasicServerConfig
,DirProvider
,FileProvider
,NullProvider
,SimpleProvider
,WSDDDeployment
,XMLStringProvider
public interface EngineConfiguration
EngineConfiguration is an interface that the Message Flow subsystem
provides so that engine configuration can be provided in a pluggable
way. An instance of EngineConfiguration provides configuration
for a particular engine instance.
Concrete implementations of this interface will obtain configuration information from some source (examples might be files, Strings, or databases) and are responsible for writing it into an AxisEngine, and writing an AxisEngine's state back out to whatever storage medium is in use.
- Author:
- Glyn Normington (glyn@apache.org), Glen Daniels (gdaniels@apache.org)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Property name used for setting an EngineConfiguration to be used in creating engines. -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureEngine
(AxisEngine engine) Configure this AxisEngine using whatever data source we have.Get an enumeration of the services deployed to this engine.Returns the global configuration options.Returns a global request handler.Returns a global response handler.getHandler
(QName qname) Retrieve an instance of the named handler.getRoles()
Get a list of roles that this engine plays globally.getService
(QName qname) Retrieve an instance of the named service.getServiceByNamespaceURI
(String namespace) Get a service which has been mapped to a particular namespace.getTransport
(QName qname) Retrieve an instance of the named transport.Retrieve the TypeMappingRegistry for this engine.void
writeEngineConfig
(AxisEngine engine) Read the configuration from an engine, and store it somehow.
-
Field Details
-
PROPERTY_NAME
Property name used for setting an EngineConfiguration to be used in creating engines.- See Also:
-
-
Method Details
-
configureEngine
Configure this AxisEngine using whatever data source we have.- Parameters:
engine
- the AxisEngine we'll deploy state to- Throws:
ConfigurationException
- if there was a problem
-
writeEngineConfig
Read the configuration from an engine, and store it somehow.- Parameters:
engine
- the AxisEngine from which to read state.- Throws:
ConfigurationException
- if there was a problem
-
getHandler
Retrieve an instance of the named handler.- Parameters:
qname
- theQName
identifying theHandler
- Returns:
- the
Handler
associated withqname
- Throws:
ConfigurationException
- if there was a failure in resolvingqname
-
getService
Retrieve an instance of the named service.- Parameters:
qname
- theQName
identifying theService
- Returns:
- the
Service
associated withqname
- Throws:
ConfigurationException
- if there was an error resolving the qname
-
getServiceByNamespaceURI
Get a service which has been mapped to a particular namespace.- Parameters:
namespace
- a namespace URI- Returns:
- an instance of the appropriate Service, or null
- Throws:
ConfigurationException
- if there was an error resolving the namespace
-
getTransport
Retrieve an instance of the named transport.- Parameters:
qname
- theQName
of the transport- Returns:
- a
Handler
implementing the transport - Throws:
ConfigurationException
- if there was an error resolving the transport
-
getTypeMappingRegistry
Retrieve the TypeMappingRegistry for this engine.- Returns:
- the type mapping registry
- Throws:
ConfigurationException
- if there was an error resolving the registry
-
getGlobalRequest
Returns a global request handler.- Returns:
- the
Handler
that globally handles requests - Throws:
ConfigurationException
- if there was some error fetching the handler
-
getGlobalResponse
Returns a global response handler.- Returns:
- the
Handler
that globally handles responses - Throws:
ConfigurationException
- if there was some error fetching the handler
-
getGlobalOptions
Returns the global configuration options.- Returns:
- the global options as a
Hashtable
- Throws:
ConfigurationException
- if the global options could not be returned
-
getDeployedServices
Get an enumeration of the services deployed to this engine. Each service is represented asServiceDesc
object.- Returns:
- an
Iterator
over theServiceDesc
objects - Throws:
ConfigurationException
- if the deployed services could not be returned- See Also:
-
getRoles
List getRoles()Get a list of roles that this engine plays globally. Services within the engine configuration may also add additional roles.- Returns:
- a
List
of the roles for this engine
-