org.objectweb.joram.client.connector
Class ActivationSpecImpl

java.lang.Object
  extended byorg.objectweb.joram.client.connector.ActivationSpecImpl
All Implemented Interfaces:
javax.resource.spi.ActivationSpec, javax.resource.spi.ResourceAdapterAssociation, java.io.Serializable

public class ActivationSpecImpl
extends java.lang.Object
implements javax.resource.spi.ActivationSpec, javax.resource.spi.ResourceAdapterAssociation, java.io.Serializable

An ActivationSpecImpl instance holds configuration information related to an endpoint deployment.

See Also:
Serialized Form

Constructor Summary
ActivationSpecImpl()
          Constructs an ActivationSpecImpl instance.
 
Method Summary
 java.lang.String getAcknowledgeMode()
          Returns the acknowledgement mode.
 java.lang.String getDestination()
          Returns the destination name.
 java.lang.String getDestinationType()
          Returns the destination type.
 java.lang.String getMaxNumberOfWorks()
          Returns the maximum number of work instances to be submitted.
 java.lang.String getMessageSelector()
          Returns the message selector.
 java.lang.String getPassword()
          Returns the user password.
 javax.resource.spi.ResourceAdapter getResourceAdapter()
          Returns the resource adapter central authority instance.
 java.lang.String getSubscriptionDurability()
          Returns the subscription durabbility.
 java.lang.String getSubscriptionName()
          Returns the name of the durable subscription.
 java.lang.String getUserName()
          Returns the user identification.
 void setAcknowledgeMode(java.lang.String acknowledgeMode)
          Sets the acknowledgement mode.
 void setDestination(java.lang.String destination)
          Sets the destination name.
 void setDestinationType(java.lang.String destinationType)
          Sets the destination type (either "javax.jms.Queue" or "javax.jms.Topic").
 void setMaxNumberOfWorks(java.lang.String maxNumberOfWorks)
          Sets the maximum number of work instances to be submitted.
 void setMessageSelector(java.lang.String messageSelector)
          Sets the message selector.
 void setPassword(java.lang.String password)
          Sets the user password.
 void setResourceAdapter(javax.resource.spi.ResourceAdapter ra)
          Sets the resource adapter central authority.
 void setSubscriptionDurability(java.lang.String subscriptionDurability)
          Sets the durability of the subscription.
 void setSubscriptionName(java.lang.String subscriptionName)
          Sets the name of the durable subscription.
 void setUserName(java.lang.String userName)
          Sets the user identification.
 void validate()
          Checks if the configuration information is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivationSpecImpl

public ActivationSpecImpl()
Constructs an ActivationSpecImpl instance.

Method Detail

validate

public void validate()
              throws javax.resource.spi.InvalidPropertyException
Checks if the configuration information is valid.

Specified by:
validate in interface javax.resource.spi.ActivationSpec
Throws:
javax.resource.spi.InvalidPropertyException - If a parameter is missing, incorrect, or not consistent with other parameters.

setResourceAdapter

public void setResourceAdapter(javax.resource.spi.ResourceAdapter ra)
                        throws javax.resource.ResourceException
Sets the resource adapter central authority.

Specified by:
setResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
Throws:
javax.resource.ResourceException

getResourceAdapter

public javax.resource.spi.ResourceAdapter getResourceAdapter()
Returns the resource adapter central authority instance.

Specified by:
getResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation

setDestinationType

public void setDestinationType(java.lang.String destinationType)
Sets the destination type (either "javax.jms.Queue" or "javax.jms.Topic").


setDestination

public void setDestination(java.lang.String destination)
Sets the destination name.


setUserName

public void setUserName(java.lang.String userName)
Sets the user identification.


setPassword

public void setPassword(java.lang.String password)
Sets the user password.


setMessageSelector

public void setMessageSelector(java.lang.String messageSelector)
Sets the message selector.


setSubscriptionDurability

public void setSubscriptionDurability(java.lang.String subscriptionDurability)
Sets the durability of the subscription.


setSubscriptionName

public void setSubscriptionName(java.lang.String subscriptionName)
Sets the name of the durable subscription.


setAcknowledgeMode

public void setAcknowledgeMode(java.lang.String acknowledgeMode)
Sets the acknowledgement mode.


setMaxNumberOfWorks

public void setMaxNumberOfWorks(java.lang.String maxNumberOfWorks)
Sets the maximum number of work instances to be submitted.


getDestinationType

public java.lang.String getDestinationType()
Returns the destination type.


getDestination

public java.lang.String getDestination()
Returns the destination name.


getUserName

public java.lang.String getUserName()
Returns the user identification.


getPassword

public java.lang.String getPassword()
Returns the user password.


getMessageSelector

public java.lang.String getMessageSelector()
Returns the message selector.


getSubscriptionDurability

public java.lang.String getSubscriptionDurability()
Returns the subscription durabbility.


getSubscriptionName

public java.lang.String getSubscriptionName()
Returns the name of the durable subscription.


getAcknowledgeMode

public java.lang.String getAcknowledgeMode()
Returns the acknowledgement mode.


getMaxNumberOfWorks

public java.lang.String getMaxNumberOfWorks()
Returns the maximum number of work instances to be submitted.



Copyright ? 2004 Scalagent - All rights reserved