org.apache.naming

Class ResourceRef


public class ResourceRef
extends Reference

Represents a reference address to a resource.

Version:
$Revision: 1.3 $ $Date: 2004/02/27 14:58:53 $

Author:
Remy Maucherat

Field Summary

static String
AUTH
Auth address type.
static String
DEFAULT_FACTORY
Default factory for this reference.
static String
DESCRIPTION
Description address type.
static String
SCOPE
Scope address type.

Constructor Summary

ResourceRef(String resourceClass, String description, String scope, String auth)
Resource Reference.
ResourceRef(String resourceClass, String description, String scope, String auth, String factory, String factoryLocation)
Resource Reference.

Method Summary

String
getFactoryClassName()
Retrieves the class name of the factory of the object to which this reference refers.
String
toString()
Return a String rendering of this object.

Field Details

AUTH

public static final String AUTH
Auth address type.


DEFAULT_FACTORY

public static final String DEFAULT_FACTORY
Default factory for this reference.


DESCRIPTION

public static final String DESCRIPTION
Description address type.


SCOPE

public static final String SCOPE
Scope address type.

Constructor Details

ResourceRef

public ResourceRef(String resourceClass,
                   String description,
                   String scope,
                   String auth)
Resource Reference.

Parameters:
resourceClass - Resource class
scope - Resource scope
auth - Resource authetication


ResourceRef

public ResourceRef(String resourceClass,
                   String description,
                   String scope,
                   String auth,
                   String factory,
                   String factoryLocation)
Resource Reference.

Parameters:
resourceClass - Resource class
scope - Resource scope
auth - Resource authetication

Method Details

getFactoryClassName

public String getFactoryClassName()
Retrieves the class name of the factory of the object to which this reference refers.


toString

public String toString()
Return a String rendering of this object.


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.