Package org.apache.qpid.jms.jndi
Class JmsInitialContextFactory
- java.lang.Object
-
- org.apache.qpid.jms.jndi.JmsInitialContextFactory
-
- All Implemented Interfaces:
InitialContextFactory
public class JmsInitialContextFactory extends Object implements InitialContextFactory
-
-
Constructor Summary
Constructors Constructor Description JmsInitialContextFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JmsConnectionFactorycreateConnectionFactory(String name, String uri, Map<String,String> defaults, Hashtable<Object,Object> environment)protected JmsConnectionFactorycreateConnectionFactory(Map<String,String> properties)Factory method to create a new connection factory using the given propertiesprotected ReadOnlyContextcreateContext(Hashtable<Object,Object> environment, Map<String,Object> bindings)protected javax.jms.QueuecreateQueue(String name)Factory method to create new Queue instancesprotected voidcreateQueues(Hashtable<Object,Object> environment, Map<String,Object> bindings)protected javax.jms.TopiccreateTopic(String name)Factory method to create new Topic instancesprotected voidcreateTopics(Hashtable<Object,Object> environment, Map<String,Object> bindings)protected static Stringexpand(String input, Map<Object,Object> environment)protected Map<String,String>getConnectionFactoryDefaults(Map<Object,Object> environment)protected Map<String,String>getConnectionFactoryNamesAndURIs(Map<Object,Object> environment)protected Map<String,String>getConnectionFactoryProperties(String factoryName, Map<Object,Object> environment)ContextgetInitialContext(Hashtable<?,?> environment)
-
-
-
Method Detail
-
getInitialContext
public Context getInitialContext(Hashtable<?,?> environment) throws NamingException
- Specified by:
getInitialContextin interfaceInitialContextFactory- Throws:
NamingException
-
createContext
protected ReadOnlyContext createContext(Hashtable<Object,Object> environment, Map<String,Object> bindings)
-
createConnectionFactory
protected JmsConnectionFactory createConnectionFactory(String name, String uri, Map<String,String> defaults, Hashtable<Object,Object> environment) throws URISyntaxException
- Throws:
URISyntaxException
-
getConnectionFactoryNamesAndURIs
protected Map<String,String> getConnectionFactoryNamesAndURIs(Map<Object,Object> environment)
-
getConnectionFactoryDefaults
protected Map<String,String> getConnectionFactoryDefaults(Map<Object,Object> environment)
-
getConnectionFactoryProperties
protected Map<String,String> getConnectionFactoryProperties(String factoryName, Map<Object,Object> environment)
-
createQueues
protected void createQueues(Hashtable<Object,Object> environment, Map<String,Object> bindings)
-
createTopics
protected void createTopics(Hashtable<Object,Object> environment, Map<String,Object> bindings)
-
createQueue
protected javax.jms.Queue createQueue(String name)
Factory method to create new Queue instances
-
createTopic
protected javax.jms.Topic createTopic(String name)
Factory method to create new Topic instances
-
createConnectionFactory
protected JmsConnectionFactory createConnectionFactory(Map<String,String> properties)
Factory method to create a new connection factory using the given properties
-
-