org.ogf.graap.wsag.wsrf.bootstrap
Class BootstrapIsolationLayer

java.lang.Object
  extended by org.apache.muse.core.platform.AbstractIsolationLayer
      extended by org.ogf.graap.wsag.wsrf.bootstrap.BootstrapIsolationLayer
All Implemented Interfaces:
org.apache.muse.core.Initialization, org.apache.muse.core.InitializationFailure, org.apache.muse.core.platform.IsolationLayer, org.apache.muse.core.Shutdown

public class BootstrapIsolationLayer
extends org.apache.muse.core.platform.AbstractIsolationLayer

The bootstrap isolation layer implements the AbstractIsolationLayer in order to start up the WSRF layer before the initial invocation of the web service interface.

Author:
Oliver Waeldrich

Constructor Summary
BootstrapIsolationLayer(String realPath, String defaultDeploymentUri)
          Creates a BootstrapIsolationLayer with a given application path (path of the expanded web application) and the external URI of the application.
 
Method Summary
protected  void beforeParentInitialize()
          Hook for sub classes that is called before initialization.
protected  org.apache.muse.core.descriptor.DeploymentDescriptor createDeploymentDescriptor()
           
protected  org.apache.muse.core.Environment createEnvironment()
          Creates a new environment instance.
 boolean hasBeenInitialized()
           
 boolean hasBeenShutdown()
           
 boolean hasFailedToInitialize()
           
 void initialize()
          Initializes the environment.
 boolean isOverrideHasBeenInitializedValue()
           
 boolean isOverrideHasBeenShutdownValue()
           
 boolean isOverrideHasFailedToInitializeValue()
           
 void setOverrideHasBeenInitializedValue(boolean overrideHasBeenInitializedValue)
           
 void setOverrideHasBeenShutdownValue(boolean overrideHasBeenShutdownValue)
           
 void setOverrideHasFailedToInitializeValue(boolean overrideHasFailedToInitializeValue)
           
 void setTestMode(boolean testMode)
          Toggles test mode on/off.
 void shutdown()
          Shuts down the isolation layer.
 
Methods inherited from class org.apache.muse.core.platform.AbstractIsolationLayer
getCauseOfFailure, getRouter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BootstrapIsolationLayer

public BootstrapIsolationLayer(String realPath,
                               String defaultDeploymentUri)
Creates a BootstrapIsolationLayer with a given application path (path of the expanded web application) and the external URI of the application.

Parameters:
realPath - the real path at the file system
defaultDeploymentUri - the default deployment URL
Method Detail

createEnvironment

protected org.apache.muse.core.Environment createEnvironment()
Creates a new environment instance.

Specified by:
createEnvironment in class org.apache.muse.core.platform.AbstractIsolationLayer
Returns:
the new environment instance

createDeploymentDescriptor

protected org.apache.muse.core.descriptor.DeploymentDescriptor createDeploymentDescriptor()
Overrides:
createDeploymentDescriptor in class org.apache.muse.core.platform.AbstractIsolationLayer

initialize

public void initialize()
Initializes the environment.

Specified by:
initialize in interface org.apache.muse.core.Initialization
Overrides:
initialize in class org.apache.muse.core.platform.AbstractIsolationLayer

shutdown

public void shutdown()
Shuts down the isolation layer.

Specified by:
shutdown in interface org.apache.muse.core.Shutdown
Overrides:
shutdown in class org.apache.muse.core.platform.AbstractIsolationLayer

beforeParentInitialize

protected void beforeParentInitialize()
Hook for sub classes that is called before initialization.


setTestMode

public void setTestMode(boolean testMode)
Toggles test mode on/off.

Parameters:
testMode - sets the test mode

hasBeenInitialized

public boolean hasBeenInitialized()
Specified by:
hasBeenInitialized in interface org.apache.muse.core.Initialization
Overrides:
hasBeenInitialized in class org.apache.muse.core.platform.AbstractIsolationLayer

hasBeenShutdown

public boolean hasBeenShutdown()
Specified by:
hasBeenShutdown in interface org.apache.muse.core.Shutdown
Overrides:
hasBeenShutdown in class org.apache.muse.core.platform.AbstractIsolationLayer

hasFailedToInitialize

public boolean hasFailedToInitialize()
Specified by:
hasFailedToInitialize in interface org.apache.muse.core.InitializationFailure
Overrides:
hasFailedToInitialize in class org.apache.muse.core.platform.AbstractIsolationLayer

isOverrideHasBeenInitializedValue

public boolean isOverrideHasBeenInitializedValue()
Returns:
true if has been initialized

setOverrideHasBeenInitializedValue

public void setOverrideHasBeenInitializedValue(boolean overrideHasBeenInitializedValue)
Parameters:
overrideHasBeenInitializedValue - sets the overrideHasBeenInitializedValue

isOverrideHasBeenShutdownValue

public boolean isOverrideHasBeenShutdownValue()
Returns:
true if has been shutdown

setOverrideHasBeenShutdownValue

public void setOverrideHasBeenShutdownValue(boolean overrideHasBeenShutdownValue)
Parameters:
overrideHasBeenShutdownValue - sets the overrideHasBeenShutdownValue

isOverrideHasFailedToInitializeValue

public boolean isOverrideHasFailedToInitializeValue()
Returns:
true if has failed to initialize

setOverrideHasFailedToInitializeValue

public void setOverrideHasFailedToInitializeValue(boolean overrideHasFailedToInitializeValue)
Parameters:
overrideHasFailedToInitializeValue - sets the overrideHasFailedToInitializeValue


Copyright © 2008-2012. All Rights Reserved.