org.jboss.jms.jndi
Class AbstractJMSProviderAdapter

java.lang.Object
  extended by org.jboss.jms.jndi.AbstractJMSProviderAdapter
All Implemented Interfaces:
Serializable, JMSProviderAdapter
Direct Known Subclasses:
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: 57209 $
Author:
Jason Dillon, Hiram Chirino, Adrian Brock
See Also:
Serialized Form

Field Summary
protected  String factoryRef
          The factory name to use.
protected  String name
          The name of the provider.
protected  Properties properties
          The properties.
protected  String queueFactoryRef
          The queue factory name to use.
protected  String topicFactoryRef
          The topic factory name to use.
 
Constructor Summary
AbstractJMSProviderAdapter()
           
 
Method Summary
 String getFactoryRef()
          Get the jndi binding of the combined connection factory
 String getName()
          Get the provider name
 Properties getProperties()
          Get the properties
 String getQueueFactoryRef()
          Get the jndi binding of the queue connection factory
 String getTopicFactoryRef()
          Get the jndi binding of the topic connection factory
 void setFactoryRef(String newFactoryRef)
          Set the jndi binding of the combined connection factory
 void setName(String name)
          Set the provider name
 void setProperties(Properties properties)
          Set the properties
 void setQueueFactoryRef(String newQueueFactoryRef)
          Set the jndi binding of the queue connection factory
 void setTopicFactoryRef(String newTopicFactoryRef)
          Set the jndi binding of the topic connection factory
 
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.


properties

protected Properties properties
The properties.


factoryRef

protected String factoryRef
The factory name to use.


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)
Description copied from interface: JMSProviderAdapter
Set the provider name

Specified by:
setName in interface JMSProviderAdapter
Parameters:
name - the name

getName

public final String getName()
Description copied from interface: JMSProviderAdapter
Get the provider name

Specified by:
getName in interface JMSProviderAdapter
Returns:
the name

setProperties

public void setProperties(Properties properties)
Description copied from interface: JMSProviderAdapter
Set the properties

Specified by:
setProperties in interface JMSProviderAdapter
Parameters:
properties - the properties

getProperties

public final Properties getProperties()
Description copied from interface: JMSProviderAdapter
Get the properties

Specified by:
getProperties in interface JMSProviderAdapter
Returns:
the properties

getFactoryRef

public String getFactoryRef()
Description copied from interface: JMSProviderAdapter
Get the jndi binding of the combined connection factory

Specified by:
getFactoryRef in interface JMSProviderAdapter
Returns:
the jndi binding

getQueueFactoryRef

public String getQueueFactoryRef()
Description copied from interface: JMSProviderAdapter
Get the jndi binding of the queue connection factory

Specified by:
getQueueFactoryRef in interface JMSProviderAdapter
Returns:
the jndi binding

getTopicFactoryRef

public String getTopicFactoryRef()
Description copied from interface: JMSProviderAdapter
Get the jndi binding of the topic connection factory

Specified by:
getTopicFactoryRef in interface JMSProviderAdapter
Returns:
the jndi binding

setFactoryRef

public void setFactoryRef(String newFactoryRef)
Description copied from interface: JMSProviderAdapter
Set the jndi binding of the combined connection factory

Specified by:
setFactoryRef in interface JMSProviderAdapter
Parameters:
newFactoryRef - the jndi binding

setQueueFactoryRef

public void setQueueFactoryRef(String newQueueFactoryRef)
Description copied from interface: JMSProviderAdapter
Set the jndi binding of the queue connection factory

Specified by:
setQueueFactoryRef in interface JMSProviderAdapter
Parameters:
newQueueFactoryRef - the jndi binding

setTopicFactoryRef

public void setTopicFactoryRef(String newTopicFactoryRef)
Description copied from interface: JMSProviderAdapter
Set the jndi binding of the topic connection factory

Specified by:
setTopicFactoryRef in interface JMSProviderAdapter
Parameters:
newTopicFactoryRef - the jndi binding


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