xmlBlaster 2.1.0 API

org.xmlBlaster.jms
Class XBObjectFactory

java.lang.Object
  extended by org.xmlBlaster.jms.XBObjectFactory
All Implemented Interfaces:
javax.naming.spi.ObjectFactory

public class XBObjectFactory
extends java.lang.Object
implements javax.naming.spi.ObjectFactory


Constructor Summary
XBObjectFactory()
           
 
Method Summary
 java.lang.Object getObjectInstance(java.lang.Object object, javax.naming.Name name, javax.naming.Context context, java.util.Hashtable env)
           
private  java.lang.Object getProperty(java.lang.Object key, javax.naming.Context context, java.util.Hashtable env)
          Searches for a particular property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XBObjectFactory

public XBObjectFactory()
Method Detail

getProperty

private java.lang.Object getProperty(java.lang.Object key,
                                     javax.naming.Context context,
                                     java.util.Hashtable env)
                              throws javax.naming.NamingException
Searches for a particular property. If the property exists in both the environment of the context and in the particular hastable passed as the environment, than the later is taken.

Parameters:
key - The name (id) of the property
context - the context on which to look
env - the additional environment to look into
Returns:
Throws:
javax.naming.NamingException

getObjectInstance

public java.lang.Object getObjectInstance(java.lang.Object object,
                                          javax.naming.Name name,
                                          javax.naming.Context context,
                                          java.util.Hashtable env)
                                   throws java.lang.Exception
Specified by:
getObjectInstance in interface javax.naming.spi.ObjectFactory
Throws:
java.lang.Exception

xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.