org.fusesource.stompjms.jndi
Class StompJmsInitialContextFactory

java.lang.Object
  extended by org.fusesource.stompjms.jndi.StompJmsInitialContextFactory
All Implemented Interfaces:
javax.naming.spi.InitialContextFactory
Direct Known Subclasses:
WasStompJmsInitialContextFactory

public class StompJmsInitialContextFactory
extends java.lang.Object
implements javax.naming.spi.InitialContextFactory

A factory of the StompJms InitialContext which contains ConnectionFactory instances as well as a child context called destinations which contain all of the current active destinations, in child context depending on the QoS such as transient or durable and queue or topic.


Constructor Summary
StompJmsInitialContextFactory()
           
 
Method Summary
protected  StompJmsConnectionFactory createConnectionFactory(java.util.Hashtable environment)
          Factory method to create a new connection factory from the given environment
protected  StompJmsConnectionFactory createConnectionFactory(java.lang.String name, java.util.Hashtable environment)
           
protected  ReadOnlyContext createContext(java.util.Hashtable environment, java.util.Map<java.lang.String,java.lang.Object> data)
           
protected  javax.jms.Queue createQueue(java.lang.String name)
          Factory method to create new Queue instances
protected  javax.jms.Topic createTopic(java.lang.String name)
          Factory method to create new Topic instances
protected  java.lang.String[] getConnectionFactoryNames(java.util.Map environment)
           
 java.lang.String getConnectionPrefix()
           
 javax.naming.Context getInitialContext(java.util.Hashtable environment)
           
 void setConnectionPrefix(java.lang.String connectionPrefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StompJmsInitialContextFactory

public StompJmsInitialContextFactory()
Method Detail

getInitialContext

public javax.naming.Context getInitialContext(java.util.Hashtable environment)
                                       throws javax.naming.NamingException
Specified by:
getInitialContext in interface javax.naming.spi.InitialContextFactory
Throws:
javax.naming.NamingException

createContext

protected ReadOnlyContext createContext(java.util.Hashtable environment,
                                        java.util.Map<java.lang.String,java.lang.Object> data)

createConnectionFactory

protected StompJmsConnectionFactory createConnectionFactory(java.lang.String name,
                                                            java.util.Hashtable environment)
                                                     throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException

getConnectionFactoryNames

protected java.lang.String[] getConnectionFactoryNames(java.util.Map environment)

createQueue

protected javax.jms.Queue createQueue(java.lang.String name)
Factory method to create new Queue instances


createTopic

protected javax.jms.Topic createTopic(java.lang.String name)
Factory method to create new Topic instances


createConnectionFactory

protected StompJmsConnectionFactory createConnectionFactory(java.util.Hashtable environment)
                                                     throws java.net.URISyntaxException
Factory method to create a new connection factory from the given environment

Throws:
java.net.URISyntaxException

getConnectionPrefix

public java.lang.String getConnectionPrefix()

setConnectionPrefix

public void setConnectionPrefix(java.lang.String connectionPrefix)


Copyright © 2010-2011 FuseSource, Corp.. All Rights Reserved.