org.objectweb.jonas.resource
Class ResourceObjectJNDIHandler

java.lang.Object
  extended byorg.objectweb.jonas.resource.ResourceObjectJNDIHandler
All Implemented Interfaces:
javax.naming.spi.ObjectFactory

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

Author:
Eric Hardesty Contributor(s):

Constructor Summary
ResourceObjectJNDIHandler()
           
 
Method Summary
 java.lang.Object getObjectInstance(java.lang.Object refObj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable env)
          Create an object using the information provided
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceObjectJNDIHandler

public ResourceObjectJNDIHandler()
Method Detail

getObjectInstance

public java.lang.Object getObjectInstance(java.lang.Object refObj,
                                          javax.naming.Name name,
                                          javax.naming.Context nameCtx,
                                          java.util.Hashtable env)
                                   throws java.lang.Exception
Create an object using the information provided

Specified by:
getObjectInstance in interface javax.naming.spi.ObjectFactory
Parameters:
refObj - the possibly null object containing reference information to create the object.
name - the name of this object relative to nameCtx, or null if no name is specified.
nameCtx - the context relative to which the name parameter is specified, or null if name is relative to the default initial context.
env - the possibly null environment that is used in creating the object.
Returns:
Object created or null if unable to create
Throws:
java.lang.Exception - if an exception happened while trying to create the object