org.jboss.jms.jndi
Class AbstractJMSProviderAdapter

java.lang.Object
  extended byorg.jboss.jms.jndi.AbstractJMSProviderAdapter
All Implemented Interfaces:
JMSProviderAdapter, Serializable
Direct Known Subclasses:
JBossMQProvider, JNDIProviderAdapter

public abstract class AbstractJMSProviderAdapter
extends Object
implements JMSProviderAdapter, Serializable

An abstract implementaion of JMSProviderAdapter. Sub-classes must provide connection names via instance initialzation and provide an implementaion of JMSProviderAdapter.getInitialContext(). 6/22/01 - hchirino - The queue/topic jndi references are now configed via JMX

Version:
$Revision: 1.6.6.1 $
Author:
Jason Dillon, Hiram Chirino
See Also:
Serialized Form

Field Summary
protected  String name
          The name of the provider.
protected  Properties properties
          The properties
protected  String providerURL
          The provider url.
protected  String queueFactoryRef
          The queue factory name to use.
protected  String topicFactoryRef
          The topic factory name to use.
 
Constructor Summary
AbstractJMSProviderAdapter()
           
 
Method Summary
 String getName()
          Get the name of the provider.
 Properties getProperties()
          Get the properties that is currently being used to connect to the JNDI provider.
 String getProviderUrl()
          Get the URL that is currently being used to connect to the JNDI provider.
 String getQueueFactoryRef()
          ???
 String getTopicFactoryRef()
          ???
 void setName(String name)
          Set the name of the provider.
 void setProperties(Properties properties)
          Set the properties that will be used to connect to the JNDI provider.
 void setProviderUrl(String url)
          Set the URL that will be used to connect to the JNDI provider.
 void setQueueFactoryRef(String newQueueFactoryRef)
          ???
 void setTopicFactoryRef(String newTopicFactoryRef)
          ???
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.jms.jndi.JMSProviderAdapter
getInitialContext
 

Field Detail

name

protected String name
The name of the provider.


providerURL

protected String providerURL
The provider url.


properties

protected Properties properties
The properties


queueFactoryRef

protected String queueFactoryRef
The queue factory name to use.


topicFactoryRef

protected String topicFactoryRef
The topic factory name to use.

Constructor Detail

AbstractJMSProviderAdapter

public AbstractJMSProviderAdapter()
Method Detail

setName

public void setName(String name)
Set the name of the provider.

Specified by:
setName in interface JMSProviderAdapter
Parameters:
name - The provider name.

getName

public final String getName()
Get the name of the provider.

Specified by:
getName in interface JMSProviderAdapter
Returns:
The provider name.

setProviderUrl

public void setProviderUrl(String url)
Set the URL that will be used to connect to the JNDI provider.

Specified by:
setProviderUrl in interface JMSProviderAdapter
Parameters:
url - The URL that will be used to connect.

getProviderUrl

public final String getProviderUrl()
Get the URL that is currently being used to connect to the JNDI provider.

Specified by:
getProviderUrl in interface JMSProviderAdapter
Returns:
The URL that is currently being used.

setProperties

public void setProperties(Properties properties)
Set the properties that will be used to connect to the JNDI provider.

Specified by:
setProperties in interface JMSProviderAdapter
Parameters:
properties - The Properties that will be used to connect.

getProperties

public final Properties getProperties()
Get the properties that is currently being used to connect to the JNDI provider.

Specified by:
getProperties in interface JMSProviderAdapter
Returns:
The properties that is currently being used.

getQueueFactoryRef

public String getQueueFactoryRef()
???

Specified by:
getQueueFactoryRef in interface JMSProviderAdapter
Returns:
???

getTopicFactoryRef

public String getTopicFactoryRef()
???

Specified by:
getTopicFactoryRef in interface JMSProviderAdapter
Returns:
???

setQueueFactoryRef

public void setQueueFactoryRef(String newQueueFactoryRef)
???

Specified by:
setQueueFactoryRef in interface JMSProviderAdapter
Returns:
???

setTopicFactoryRef

public void setTopicFactoryRef(String newTopicFactoryRef)
???

Specified by:
setTopicFactoryRef in interface JMSProviderAdapter
Returns:
???


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.