org.exolab.jms.config
Class JndiConfigurationFactory

java.lang.Object
  |
  +--org.exolab.jms.config.JndiConfigurationFactory

public class JndiConfigurationFactory
extends java.lang.Object

This factory creates appropriate JndiConfiguration objects for a given SchemeType.

Version:
$Revision: 1.1 $ $Date: 2004/11/26 01:50:41 $
Author:
Tim Anderson
See Also:
Configuration

Constructor Summary
JndiConfigurationFactory()
           
 
Method Summary
static JndiConfiguration create(Configuration config)
          Returns the JNDI configuration deriving the settings from the supplied configuration.
static JndiConfiguration create(Connector connector, Configuration config)
          Returns the JNDI configuration for a particular connector, deriving the settings from the supplied configuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiConfigurationFactory

public JndiConfigurationFactory()
Method Detail

create

public static JndiConfiguration create(Configuration config)
Returns the JNDI configuration deriving the settings from the supplied configuration. If more than one connector is configured, the first will be selected
Parameters:
config - the configuration to derive settings from
Returns:
the JNDI configuration
Throws:
java.lang.IllegalArgumentException - if config is null

create

public static JndiConfiguration create(Connector connector,
                                       Configuration config)
Returns the JNDI configuration for a particular connector, deriving the settings from the supplied configuration
Parameters:
connector - the connector to return the JNDI configuration for
config - the configuration to derive settings from
Returns:
the JNDI configuration
Throws:
java.lang.IllegalArgumentException - if any argument is null


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.