org.exolab.jms.config
Class JndiConfiguration

java.lang.Object
  extended by org.exolab.jms.config.JndiConfiguration
All Implemented Interfaces:
java.io.Serializable

public class JndiConfiguration
extends java.lang.Object
implements java.io.Serializable

This element defines the properties used when constructing an InitialContext. Users only need to specify this if an external JNDI provider is being used. Typically the java.naming.factory.initial property must be supplied, with the fully qualified name of the factory class that will create an initial context.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
JndiConfiguration()
           
 
Method Summary
 void addProperty(int index, Property vProperty)
          Method addProperty
 void addProperty(Property vProperty)
          Method addProperty
 void clearProperty()
          Method clearProperty
 java.util.Enumeration enumerateProperty()
          Method enumerateProperty
 Property[] getProperty()
          Method getProperty
 Property getProperty(int index)
          Method getProperty
 int getPropertyCount()
          Method getPropertyCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeProperty(Property vProperty)
          Method removeProperty
 void setProperty(int index, Property vProperty)
          Method setProperty
 void setProperty(Property[] propertyArray)
          Method setProperty
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiConfiguration

public JndiConfiguration()
Method Detail

addProperty

public void addProperty(Property vProperty)
                 throws java.lang.IndexOutOfBoundsException
Method addProperty

Parameters:
vProperty -
Throws:
java.lang.IndexOutOfBoundsException

addProperty

public void addProperty(int index,
                        Property vProperty)
                 throws java.lang.IndexOutOfBoundsException
Method addProperty

Parameters:
index -
vProperty -
Throws:
java.lang.IndexOutOfBoundsException

clearProperty

public void clearProperty()
Method clearProperty


enumerateProperty

public java.util.Enumeration enumerateProperty()
Method enumerateProperty

Returns:
Enumeration

getProperty

public Property getProperty(int index)
                     throws java.lang.IndexOutOfBoundsException
Method getProperty

Parameters:
index -
Returns:
Property
Throws:
java.lang.IndexOutOfBoundsException

getProperty

public Property[] getProperty()
Method getProperty

Returns:
Property

getPropertyCount

public int getPropertyCount()
Method getPropertyCount

Returns:
int

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeProperty

public boolean removeProperty(Property vProperty)
Method removeProperty

Parameters:
vProperty -
Returns:
boolean

setProperty

public void setProperty(int index,
                        Property vProperty)
                 throws java.lang.IndexOutOfBoundsException
Method setProperty

Parameters:
index -
vProperty -
Throws:
java.lang.IndexOutOfBoundsException

setProperty

public void setProperty(Property[] propertyArray)
Method setProperty

Parameters:
propertyArray -

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


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