org.apache.muse.ws.resource.lifetime
Interface ImmediateTermination

All Superinterfaces:
Capability, Initialization, InitializationParameters, Shutdown, WsResourceCapability
All Known Implementing Classes:
SimpleImmediateTermination

public interface ImmediateTermination
extends WsResourceCapability

ImmediateTermination represents the WS-ResourceLifetime ImmediateResourceTermination capability, which has one method: wsrf-rl:Destroy. This capability allows remote clients to permanently remove resource instances from a system. If this capability is not used, only the internal application code will be allowed to destroy a resource instance.

Author:
Dan Jemiolo (danj)

Method Summary
 void deleteProperty(QName property)
           
 void destroy()
          Makes the resource's destruction logic available to remote clients.
 Element[] getProperty(QName property)
           
 QName[] getPropertyNames()
          Concrete capability classes that define properties MUST override this method and provide the names of the properties.
 void insertProperty(QName property, Element[] values)
           
 void updateProperty(QName property, Element[] values)
           
 
Methods inherited from interface org.apache.muse.ws.resource.WsResourceCapability
getWsResource
 
Methods inherited from interface org.apache.muse.core.Capability
getActions, getCapabilityURI, getEnvironment, getLog, getMessageHandler, getPersistence, getResource, initializeCompleted, prepareShutdown, setCapabilityURI, setEnvironment, setLog, setMessageHandlers, setPersistence, setResource
 
Methods inherited from interface org.apache.muse.core.Initialization
hasBeenInitialized, initialize
 
Methods inherited from interface org.apache.muse.core.InitializationParameters
getInitializationParameter, getInitializationParameters, setInitializationParameters
 
Methods inherited from interface org.apache.muse.core.Shutdown
hasBeenShutdown, shutdown
 

Method Detail

destroy

void destroy()
             throws ResourceNotDestroyedFault
Makes the resource's destruction logic available to remote clients.

Throws:
ResourceNotDestroyedFault -
  • If the resource cannot be removed, or if a destruction callback fails.

deleteProperty

void deleteProperty(QName property)
                    throws BaseFault
Throws:
BaseFault

getProperty

Element[] getProperty(QName property)
                      throws BaseFault
Throws:
BaseFault

getPropertyNames

QName[] getPropertyNames()
Concrete capability classes that define properties MUST override this method and provide the names of the properties.

Returns:
The names of the resource properties defined by this capability.

insertProperty

void insertProperty(QName property,
                    Element[] values)
                    throws BaseFault
Throws:
BaseFault

updateProperty

void updateProperty(QName property,
                    Element[] values)
                    throws BaseFault
Throws:
BaseFault


Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.