org.exolab.jmscts.core
Class ConnectionFactoryTypes

java.lang.Object
  |
  +--org.exolab.jmscts.core.ConnectionFactoryTypes

public final class ConnectionFactoryTypes
extends java.lang.Object

Helper class used to indicate what JMS connection factory types to run a particular test case against

Version:
$Revision: 1.4 $ $Date: 2004/01/31 13:44:24 $
Author:
Tim Anderson
See Also:
ConnectionFactoryTestCase, ProviderTestRunner

Field Summary
static ConnectionFactoryTypes ALL
          All connection factory types
static ConnectionFactoryTypes ALL_QUEUE
          All queue connection factory types
static ConnectionFactoryTypes ALL_TOPIC
          All topic connection factory types
static ConnectionFactoryTypes QUEUE
          Queue connection factory
static ConnectionFactoryTypes TOPIC
          Topic connection factory
static java.lang.Class[] TYPES
          The available connection factory types.
static ConnectionFactoryTypes XAQUEUE
          XA queue connection factory
static ConnectionFactoryTypes XATOPIC
          XA topic connection factory
 
Method Summary
 int count()
          Return a count of the connection factory types
static ConnectionFactoryTypes fromString(java.lang.String name)
          Helper to convert a factory name to a ConnectionFactoryTypes instance
static ConnectionFactoryTypes fromString(java.lang.String[] names)
          Helper to convert a set of factory names to a ConnectionFactoryTypes instance
static java.lang.Class getType(javax.jms.ConnectionFactory factory)
          Helper to return the type that a particular factory implements
 java.lang.Class[] getTypes()
          Return the list of connection factory types to test against
 java.lang.String toString()
          Returns a stringified version of this, for debugging purposes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

QUEUE

public static final ConnectionFactoryTypes QUEUE
Queue connection factory

TOPIC

public static final ConnectionFactoryTypes TOPIC
Topic connection factory

XAQUEUE

public static final ConnectionFactoryTypes XAQUEUE
XA queue connection factory

XATOPIC

public static final ConnectionFactoryTypes XATOPIC
XA topic connection factory

ALL_QUEUE

public static final ConnectionFactoryTypes ALL_QUEUE
All queue connection factory types

ALL_TOPIC

public static final ConnectionFactoryTypes ALL_TOPIC
All topic connection factory types

ALL

public static final ConnectionFactoryTypes ALL
All connection factory types

TYPES

public static final java.lang.Class[] TYPES
The available connection factory types.
Method Detail

getTypes

public java.lang.Class[] getTypes()
Return the list of connection factory types to test against
Returns:
the list of connection factory types to test against

toString

public java.lang.String toString()
Returns a stringified version of this, for debugging purposes
Overrides:
toString in class java.lang.Object
Returns:
a stringified version of this

count

public int count()
Return a count of the connection factory types
Returns:
the number of connection factory types

getType

public static java.lang.Class getType(javax.jms.ConnectionFactory factory)
Helper to return the type that a particular factory implements
Parameters:
factory - the connection factory
Returns:
the type of the factory

fromString

public static ConnectionFactoryTypes fromString(java.lang.String name)
Helper to convert a factory name to a ConnectionFactoryTypes instance
Parameters:
name - the factory name
Returns:
an instance corresponding to name, or null if name is invalid

fromString

public static ConnectionFactoryTypes fromString(java.lang.String[] names)
Helper to convert a set of factory names to a ConnectionFactoryTypes instance
Parameters:
names - the factory names
Returns:
an instance corresponding to names, or null if names is invalid


Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.