org.apache.muse.core.platform
Class AbstractIsolationLayer
java.lang.Object
org.apache.muse.core.platform.AbstractIsolationLayer
- All Implemented Interfaces:
- Initialization, InitializationFailure, IsolationLayer, Shutdown
- Direct Known Subclasses:
- AxisIsolationLayer, MiniIsolationLayer
public abstract class AbstractIsolationLayer
- extends Object
- implements IsolationLayer
This class provides all of the generic initialization and shutdown
routines without referencing any specific implementation of the
various sub-components (ResourceRouter, Environment, etc.). It allows
implementers of concrete classes to focus on the platform-specific
request handling method(s) they need and to provide the implementation
classes of the various sub-components without having to code the
initialization logic and interactions between them.
- Author:
- Dan Jemiolo (danj)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractIsolationLayer
public AbstractIsolationLayer()
createDeploymentDescriptor
protected DeploymentDescriptor createDeploymentDescriptor()
- This method can be overridden to provide a different deployment
descriptor parser implementation.
- Returns:
- An instance of SimpleDeploymentDescriptor
createEnvironment
protected abstract Environment createEnvironment()
- Returns:
- A concrete instance of the Environment class, specific to
the deployment platform.
- See Also:
Environment
getRouter
public ResourceRouter getRouter()
- Specified by:
getRouter
in interface IsolationLayer
- Returns:
- The router instance that is responsible for delegating SOAP
requests in a platform-independent way.
initialize
public void initialize()
- Specified by:
initialize
in interface Initialization
hasBeenInitialized
public boolean hasBeenInitialized()
- Specified by:
hasBeenInitialized
in interface Initialization
- Returns:
- True, if the initialize() method has been called and
run to completion successfully.
hasBeenShutdown
public boolean hasBeenShutdown()
- Specified by:
hasBeenShutdown
in interface Shutdown
- Returns:
- True, if the shutdown() method has been called and
run to completion successfully. If true, no other
methods should be called on this Resource object.
hasFailedToInitialize
public boolean hasFailedToInitialize()
- Specified by:
hasFailedToInitialize
in interface InitializationFailure
- Returns:
- True if the component's initialization routine was started
but failed to run to completion successfully.
getCauseOfFailure
public SoapFault getCauseOfFailure()
- Specified by:
getCauseOfFailure
in interface InitializationFailure
- Returns:
- The exception that was created at the time the initialization
routine failed, or null if initialization was successful.
shutdown
public void shutdown()
throws SoapFault
- Specified by:
shutdown
in interface Shutdown
- Throws:
SoapFault
Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.