FileDocCategorySizeDatePackage
UserTransactionFactory.javaAPI DocGlassfish v2 API3393Fri May 04 22:36:40 BST 2007com.sun.jts.jta

UserTransactionFactory

public class UserTransactionFactory extends Object implements ObjectFactory
Factory for producing the UserTransactionImpl objects.
author
Ram Jeyaraman
version
1.0 Feb 09, 1999

Fields Summary
Constructors Summary
Methods Summary
public java.lang.ObjectgetObjectInstance(java.lang.Object refObj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable env)

param
obj Reference information that can be used in creating an object.
param
name of this object relative to nameCtx (optional).
param
nameCtx context relative to which the name parameter specified. If null, name is relative to the default initial context.
param
environment possibly null environment used in creating the object.
return
object created; null if an object cannot be created.
exception
java.lang.Exception if this object factory encountered an exception while attempting to create an object.


        if (refObj == null || !(refObj instanceof Reference))
        	return null;

        Reference ref = (Reference) refObj;

        if (ref.getClassName().
        	equals(UserTransactionImpl.class.getName())) {
            // create a new object
        	return new UserTransactionImpl();
        }

        return null;