org.apache.qpid.jndi
Class PropertiesFileInitialContextFactory

java.lang.Object
  extended by org.apache.qpid.jndi.PropertiesFileInitialContextFactory
All Implemented Interfaces:
InitialContextFactory

public class PropertiesFileInitialContextFactory
extends Object
implements InitialContextFactory


Field Summary
protected  org.slf4j.Logger _logger
           
 
Constructor Summary
PropertiesFileInitialContextFactory()
           
 
Method Summary
protected  void createConnectionFactories(Map data, Hashtable environment)
           
protected  ReadOnlyContext createContext(Map data, Hashtable environment)
           
protected  Destination createDestination(String str)
          Factory method to create new Destination instances from an AMQP BindingURL
protected  void createDestinations(Map data, Hashtable environment)
           
protected  ConnectionFactory createFactory(String url)
          Factory method to create new Connection Factory instances
protected  Destination createHeaderExchange(Object value)
          Factory method to create new HeaderExcahnge instances
protected  Queue createQueue(Object value)
          Factory method to create new Queue instances
protected  void createQueues(Map data, Hashtable environment)
           
protected  Topic createTopic(Object value)
          Factory method to create new Topic instances
protected  void createTopics(Map data, Hashtable environment)
           
 String getConnectionPrefix()
           
 String getDestinationPrefix()
           
 Context getInitialContext(Hashtable environment)
           
 String getQueuePrefix()
           
 String getTopicPrefix()
           
 void setConnectionPrefix(String connectionPrefix)
           
 void setDestinationPrefix(String destinationPrefix)
           
 void setQueuePrefix(String queuePrefix)
           
 void setTopicPrefix(String topicPrefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_logger

protected final org.slf4j.Logger _logger
Constructor Detail

PropertiesFileInitialContextFactory

public PropertiesFileInitialContextFactory()
Method Detail

getInitialContext

public Context getInitialContext(Hashtable environment)
                          throws NamingException
Specified by:
getInitialContext in interface InitialContextFactory
Throws:
NamingException

createContext

protected ReadOnlyContext createContext(Map data,
                                        Hashtable environment)

createConnectionFactories

protected void createConnectionFactories(Map data,
                                         Hashtable environment)

createDestinations

protected void createDestinations(Map data,
                                  Hashtable environment)

createQueues

protected void createQueues(Map data,
                            Hashtable environment)

createTopics

protected void createTopics(Map data,
                            Hashtable environment)

createFactory

protected ConnectionFactory createFactory(String url)
Factory method to create new Connection Factory instances


createDestination

protected Destination createDestination(String str)
Factory method to create new Destination instances from an AMQP BindingURL


createQueue

protected Queue createQueue(Object value)
Factory method to create new Queue instances


createTopic

protected Topic createTopic(Object value)
Factory method to create new Topic instances


createHeaderExchange

protected Destination createHeaderExchange(Object value)
Factory method to create new HeaderExcahnge instances


getConnectionPrefix

public String getConnectionPrefix()

setConnectionPrefix

public void setConnectionPrefix(String connectionPrefix)

getDestinationPrefix

public String getDestinationPrefix()

setDestinationPrefix

public void setDestinationPrefix(String destinationPrefix)

getQueuePrefix

public String getQueuePrefix()

setQueuePrefix

public void setQueuePrefix(String queuePrefix)

getTopicPrefix

public String getTopicPrefix()

setTopicPrefix

public void setTopicPrefix(String topicPrefix)


Licensed to the Apache Software Foundation