org.apache.ws.resource.lifetime.impl
Class AbstractResourceTerminationEvent

java.lang.Object
  extended byorg.apache.ws.resource.lifetime.impl.AbstractResourceTerminationEvent
All Implemented Interfaces:
ResourceTerminationEvent
Direct Known Subclasses:
ResourceTerminationEventImpl

public abstract class AbstractResourceTerminationEvent
extends java.lang.Object
implements ResourceTerminationEvent

Author:
Sal Campana

Constructor Summary
AbstractResourceTerminationEvent(java.lang.Object resourceId)
          Constructor creates termination time upon construction.
AbstractResourceTerminationEvent(java.lang.Object resourceId, java.util.Calendar terminationTime, java.lang.Object reason)
          Sets termination time and reason to passed in params.
AbstractResourceTerminationEvent(java.lang.Object resourceId, java.lang.Object reason)
          Set the reson to the object specified and termination time is set upon construction.
 
Method Summary
 java.lang.Object getReason()
          Returns the reason for temrination.
 java.lang.Object getResourceId()
          DOCUMENT_ME
protected abstract  org.apache.xmlbeans.XmlObject getTerminationNotifDocXmlBean(NamespaceVersionHolder namespaces)
          DOCUMENT_ME
 java.util.Calendar getTerminationTime()
          Returns the termination time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractResourceTerminationEvent

public AbstractResourceTerminationEvent(java.lang.Object resourceId,
                                        java.util.Calendar terminationTime,
                                        java.lang.Object reason)
Sets termination time and reason to passed in params.

Parameters:
resourceId - The resource Id of the resource being destroyed.
terminationTime -
reason -

AbstractResourceTerminationEvent

public AbstractResourceTerminationEvent(java.lang.Object resourceId,
                                        java.lang.Object reason)
Set the reson to the object specified and termination time is set upon construction.

Parameters:
resourceId - The resource Id of the resource being destroyed.
reason -

AbstractResourceTerminationEvent

public AbstractResourceTerminationEvent(java.lang.Object resourceId)
Constructor creates termination time upon construction. Reason is null.

Parameters:
resourceId - The resource Id of the resource being destroyed.
Method Detail

getReason

public java.lang.Object getReason()
Returns the reason for temrination.

minOccurs="0" maxOccurs="1"

Specified by:
getReason in interface ResourceTerminationEvent
Returns:
The reason for termination.

getResourceId

public java.lang.Object getResourceId()
DOCUMENT_ME

Returns:
DOCUMENT_ME

getTerminationTime

public java.util.Calendar getTerminationTime()
Returns the termination time.

minOccurs="1" maxOccurs="1" nillable="true"

Specified by:
getTerminationTime in interface ResourceTerminationEvent
Returns:
The termination time represented as a Calendar instance.

getTerminationNotifDocXmlBean

protected abstract org.apache.xmlbeans.XmlObject getTerminationNotifDocXmlBean(NamespaceVersionHolder namespaces)
DOCUMENT_ME

Parameters:
namespaces - DOCUMENT_ME
Returns:
DOCUMENT_ME


Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.