Top Description Fields Constructors Methods
org.apache.naming

public Class ResourceRef

extends AbstractRef
Class Inheritance
Imports
javax.naming.StringRefAddr

Represents a reference address to a resource.
Author
Remy Maucherat

Field Summary

Modifier and TypeField and Description
public static final String
AUTH

Auth address type.

public static final String
DEFAULT_FACTORY

Default factory for this reference.

public static final String
DESCRIPTION

Description address type.

public static final String
SCOPE

Scope address type.

private static final long
public static final String
SINGLETON

Is this resource a singleton

Constructor Summary

AccessConstructor and Description
public
ResourceRef(String
Resource class
resourceClass
,
String
Description of the resource
description
,
String
Resource scope
scope
,
String
Resource authentication
auth
,
boolean
Is this resource a singleton (every lookup should return the same instance rather than a new instance)?
singleton
)

Resource Reference.

public
ResourceRef(String
Resource class
resourceClass
,
String
Description of the resource
description
,
String
Resource scope
scope
,
String
Resource authentication
auth
,
boolean
Is this resource a singleton (every lookup should return the same instance rather than a new instance)?
singleton
,
String
The possibly null class name of the object's factory.
factory
,
String
The possibly null location from which to load the factory (e.g. URL)
factoryLocation
)

Resource Reference.

Method Summary

Modifier and TypeMethod and Description
protected String
Inherited from org.apache.naming.AbstractRef:
getFactoryClassNametoString

Field Detail

AUTHback to summary
public static final String AUTH

Auth address type.

DEFAULT_FACTORYback to summary
public static final String DEFAULT_FACTORY

Default factory for this reference.

DESCRIPTIONback to summary
public static final String DESCRIPTION

Description address type.

SCOPEback to summary
public static final String SCOPE

Scope address type.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.naming.AbstractRef.serialVersionUID.

SINGLETONback to summary
public static final String SINGLETON

Is this resource a singleton

Constructor Detail

ResourceRefback to summary
public ResourceRef(String resourceClass, String description, String scope, String auth, boolean singleton)

Resource Reference.

Parameters
resourceClass:String

Resource class

description:String

Description of the resource

scope:String

Resource scope

auth:String

Resource authentication

singleton:boolean

Is this resource a singleton (every lookup should return the same instance rather than a new instance)?

ResourceRefback to summary
public ResourceRef(String resourceClass, String description, String scope, String auth, boolean singleton, String factory, String factoryLocation)

Resource Reference.

Parameters
resourceClass:String

Resource class

description:String

Description of the resource

scope:String

Resource scope

auth:String

Resource authentication

singleton:boolean

Is this resource a singleton (every lookup should return the same instance rather than a new instance)?

factory:String

The possibly null class name of the object's factory.

factoryLocation:String

The possibly null location from which to load the factory (e.g. URL)

Method Detail

getDefaultFactoryClassNameback to summary
protected String getDefaultFactoryClassName()

Implements abstract org.apache.naming.AbstractRef.getDefaultFactoryClassName.

Annotations
@Override