org.jboss.jms.jndi
Class JMSProviderLoader

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.jms.jndi.JMSProviderLoader
All Implemented Interfaces:
MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)

public class JMSProviderLoader
extends ServiceMBeanSupport (src)

A JMX service to load a JMSProviderAdapter and register it.


Field Summary
protected  java.lang.String factoryRef
          The factory jndi name.
protected  java.lang.String jndiName
          The JNDI name to bind the adapter to.
protected  java.util.Properties properties
          The properties
protected  JMSProviderAdapter (src) providerAdapter
          The provider adapter which we are loading.
protected  java.lang.String providerAdapterClass
          The provider adapter classname.
protected  java.lang.String providerName
          The provider name.
protected  java.lang.String queueFactoryRef
          The queue factory jndi name.
protected  java.lang.String topicFactoryRef
          The topic factory jndi name.
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
JMSProviderLoader()
           
 
Method Summary
 java.lang.String getAdapterJNDIName()
           
 java.lang.String getFactoryRef()
           
 java.lang.String getName()
          Use the short class name as the default for the service name.
 java.util.Properties getProperties()
           
 java.lang.String getProviderAdapterClass()
           
 java.lang.String getProviderName()
           
 java.lang.String getQueueFactoryRef()
           
 java.lang.String getTopicFactoryRef()
           
 void setAdapterJNDIName(java.lang.String name)
           
 void setFactoryRef(java.lang.String newFactoryRef)
           
 void setProperties(java.util.Properties properties)
           
 void setProviderAdapterClass(java.lang.String clazz)
           
 void setProviderName(java.lang.String name)
           
 void setQueueFactoryRef(java.lang.String newQueueFactoryRef)
           
 void setTopicFactoryRef(java.lang.String newTopicFactoryRef)
           
protected  void startService()
          Sub-classes should override this method to provide custum 'start' logic.
protected  void stopService()
          Sub-classes should override this method to provide custum 'stop' logic.
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, createService, destroy, destroyService, 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 (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

providerAdapter

protected JMSProviderAdapter (src)  providerAdapter
The provider adapter which we are loading.


properties

protected java.util.Properties properties
The properties


providerName

protected java.lang.String providerName
The provider name.


providerAdapterClass

protected java.lang.String providerAdapterClass
The provider adapter classname.


factoryRef

protected java.lang.String factoryRef
The factory jndi name.


queueFactoryRef

protected java.lang.String queueFactoryRef
The queue factory jndi name.


topicFactoryRef

protected java.lang.String topicFactoryRef
The topic factory jndi name.


jndiName

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

Constructor Detail

JMSProviderLoader

public JMSProviderLoader()
Method Detail

setProviderName

public void setProviderName(java.lang.String name)

getProviderName

public java.lang.String getProviderName()

setProviderAdapterClass

public void setProviderAdapterClass(java.lang.String clazz)

getProviderAdapterClass

public java.lang.String getProviderAdapterClass()

setProperties

public void setProperties(java.util.Properties properties)

getProperties

public java.util.Properties getProperties()

setAdapterJNDIName

public void setAdapterJNDIName(java.lang.String name)

getAdapterJNDIName

public java.lang.String getAdapterJNDIName()

setFactoryRef

public void setFactoryRef(java.lang.String newFactoryRef)

setQueueFactoryRef

public void setQueueFactoryRef(java.lang.String newQueueFactoryRef)

setTopicFactoryRef

public void setTopicFactoryRef(java.lang.String newTopicFactoryRef)

getFactoryRef

public java.lang.String getFactoryRef()

getQueueFactoryRef

public java.lang.String getQueueFactoryRef()

getTopicFactoryRef

public java.lang.String getTopicFactoryRef()

getName

public java.lang.String getName()
Description copied from class: ServiceMBeanSupport (src)
Use the short class name as the default for the service name.

Specified by:
getName in interface ServiceMBean (src)
Overrides:
getName in class ServiceMBeanSupport (src)

startService

protected void startService()
                     throws java.lang.Exception
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'start' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
startService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception

stopService

protected void stopService()
                    throws java.lang.Exception
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'stop' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
stopService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception