FileDocCategorySizeDatePackage
ResourceEnvRef.javaAPI DocApache Tomcat 6.0.142877Fri Jul 20 04:20:36 BST 2007org.apache.naming

ResourceEnvRef

public class ResourceEnvRef extends Reference
Represents a reference address to a resource environment.
author
Remy Maucherat
version
$Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $

Fields Summary
public static final String
DEFAULT_FACTORY
Default factory for this reference.
Constructors Summary
public ResourceEnvRef(String resourceType)
Resource env reference.

param
resourceType Type



    // ----------------------------------------------------------- Constructors


                
       
        super(resourceType);
    
public ResourceEnvRef(String resourceType, String factory, String factoryLocation)
Resource env reference.

param
resourceType Type
param
factory The factory class
param
factoryLocation The factory location

        super(resourceType, factory, factoryLocation);
    
Methods Summary
public java.lang.StringgetFactoryClassName()
Retrieves the class name of the factory of the object to which this reference refers.

        String factory = super.getFactoryClassName();
        if (factory != null) {
            return factory;
        } else {
            factory = System.getProperty(Context.OBJECT_FACTORIES);
            if (factory != null) {
                return null;
            } else {
                return DEFAULT_FACTORY;
            }
        }