org.ow2.jonas.resource.internal.naming
Class ResourceObjectFactory
java.lang.Object
org.ow2.jonas.resource.internal.naming.ResourceObjectFactory
- All Implemented Interfaces:
- ObjectFactory
public class ResourceObjectFactory
- extends Object
- implements ObjectFactory
Resource Service ObjectFactory
for ConnectionFactory
.
- Author:
- Eric Hardesty
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceObjectFactory
public ResourceObjectFactory()
getObjectInstance
public Object getObjectInstance(Object refObj,
Name name,
Context nameCtx,
Hashtable env)
throws Exception
- Create an object using the information provided
- Specified by:
getObjectInstance
in interface 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:
Exception
- if an exception happened while trying to create the object
Copyright © 2010 OW2 Consortium. All Rights Reserved.