org.jboss.jms.jndi
Class JMSProviderLoader

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.jms.jndi.JMSProviderLoader
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, JMSProviderLoaderMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class JMSProviderLoader
extends org.jboss.system.ServiceMBeanSupport
implements JMSProviderLoaderMBean

A JMX service to load a JMSProviderAdapter and register it.

Version:
$Revision: 57209 $
Author:
Hiram Chirino, Jason Dillon, Adrian Brock

Field Summary
protected  String factoryRef
          The factory jndi name.
protected  String jndiName
          The JNDI name to bind the adapter to.
protected  Properties properties
          The properties
protected  JMSProviderAdapter providerAdapter
          The provider adapter which we are loading.
protected  String providerAdapterClass
          The provider adapter classname.
protected  String providerName
          The provider name.
protected  String queueFactoryRef
          The queue factory jndi name.
protected  String topicFactoryRef
          The topic factory jndi name.
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
JMSProviderLoader()
           
 
Method Summary
 String getAdapterJNDIName()
          Get where the provider adapter is bound into jndi
 String getFactoryRef()
          Get the jndi name of the unified connection factory
 String getName()
           
 Properties getProperties()
          Get the provider properties
 String getProviderAdapterClass()
          Get the provider adapter class
 String getProviderName()
          Get the provider name
 String getQueueFactoryRef()
          Get the jndi name of the queue connection factory
 String getTopicFactoryRef()
          Get the jndi name of the topic connection factory
 void setAdapterJNDIName(String name)
          Set where the provider adapter is bound into jndi
 void setFactoryRef(String newFactoryRef)
          Set the jndi name of the unified connection factory
 void setProperties(Properties properties)
          Set the provider properties
 void setProviderAdapterClass(String clazz)
          Set the provider adapter class
 void setProviderName(String name)
          Set the provider name
 void setQueueFactoryRef(String newQueueFactoryRef)
          Set the jndi name of the queue connection factory
 void setTopicFactoryRef(String newTopicFactoryRef)
          Set the jndi name of the topic connection factory
protected  void startService()
           
protected  void stopService()
           
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean
getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Field Detail

providerAdapter

protected JMSProviderAdapter providerAdapter
The provider adapter which we are loading.


properties

protected Properties properties
The properties


providerName

protected String providerName
The provider name.


providerAdapterClass

protected String providerAdapterClass
The provider adapter classname.


factoryRef

protected String factoryRef
The factory jndi name.


queueFactoryRef

protected String queueFactoryRef
The queue factory jndi name.


topicFactoryRef

protected String topicFactoryRef
The topic factory jndi name.


jndiName

protected String jndiName
The JNDI name to bind the adapter to.

Constructor Detail

JMSProviderLoader

public JMSProviderLoader()
Method Detail

setProviderName

public void setProviderName(String name)
Description copied from interface: JMSProviderLoaderMBean
Set the provider name

Specified by:
setProviderName in interface JMSProviderLoaderMBean
Parameters:
name - the provider name

getProviderName

public String getProviderName()
Description copied from interface: JMSProviderLoaderMBean
Get the provider name

Specified by:
getProviderName in interface JMSProviderLoaderMBean
Returns:
the provider name

setProviderAdapterClass

public void setProviderAdapterClass(String clazz)
Description copied from interface: JMSProviderLoaderMBean
Set the provider adapter class

Specified by:
setProviderAdapterClass in interface JMSProviderLoaderMBean
Parameters:
clazz - the class name

getProviderAdapterClass

public String getProviderAdapterClass()
Description copied from interface: JMSProviderLoaderMBean
Get the provider adapter class

Specified by:
getProviderAdapterClass in interface JMSProviderLoaderMBean
Returns:
the class name

setProperties

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

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

getProperties

public Properties getProperties()
Description copied from interface: JMSProviderLoaderMBean
Get the provider properties

Specified by:
getProperties in interface JMSProviderLoaderMBean
Returns:
the properties

setAdapterJNDIName

public void setAdapterJNDIName(String name)
Description copied from interface: JMSProviderLoaderMBean
Set where the provider adapter is bound into jndi

Specified by:
setAdapterJNDIName in interface JMSProviderLoaderMBean
Parameters:
name - the provider adapter jndi name

getAdapterJNDIName

public String getAdapterJNDIName()
Description copied from interface: JMSProviderLoaderMBean
Get where the provider adapter is bound into jndi

Specified by:
getAdapterJNDIName in interface JMSProviderLoaderMBean
Returns:
the jndi binding

setFactoryRef

public void setFactoryRef(String newFactoryRef)
Description copied from interface: JMSProviderLoaderMBean
Set the jndi name of the unified connection factory

Specified by:
setFactoryRef in interface JMSProviderLoaderMBean
Parameters:
newFactoryRef - the jndi name

setQueueFactoryRef

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

Specified by:
setQueueFactoryRef in interface JMSProviderLoaderMBean
Parameters:
newQueueFactoryRef - the jndi name

setTopicFactoryRef

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

Specified by:
setTopicFactoryRef in interface JMSProviderLoaderMBean
Parameters:
newTopicFactoryRef - the jndi name

getFactoryRef

public String getFactoryRef()
Description copied from interface: JMSProviderLoaderMBean
Get the jndi name of the unified connection factory

Specified by:
getFactoryRef in interface JMSProviderLoaderMBean
Returns:
the jndi name

getQueueFactoryRef

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

Specified by:
getQueueFactoryRef in interface JMSProviderLoaderMBean
Returns:
the jndi name

getTopicFactoryRef

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

Specified by:
getTopicFactoryRef in interface JMSProviderLoaderMBean
Returns:
the jndi name

getName

public String getName()
Specified by:
getName in interface org.jboss.system.ServiceMBean
Overrides:
getName in class org.jboss.system.ServiceMBeanSupport

startService

protected void startService()
                     throws Exception
Overrides:
startService in class org.jboss.system.ServiceMBeanSupport
Throws:
Exception

stopService

protected void stopService()
                    throws Exception
Overrides:
stopService in class org.jboss.system.ServiceMBeanSupport
Throws:
Exception


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