org.ow2.jonas.resource.internal.naming
Class ResourceObjectFactory

java.lang.Object
  extended by org.ow2.jonas.resource.internal.naming.ResourceObjectFactory
All Implemented Interfaces:
javax.naming.spi.ObjectFactory

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

Resource Service ObjectFactory for ConnectionFactory.

Author:
Eric Hardesty

Constructor Summary
ResourceObjectFactory()
           
 
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

ResourceObjectFactory

public ResourceObjectFactory()
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


Copyright © 2010 OW2 Consortium. All Rights Reserved.