Package org.apache.naming
Class ResourceRef
java.lang.Object
javax.naming.Reference
org.apache.naming.AbstractRef
org.apache.naming.ResourceRef
- All Implemented Interfaces:
Serializable
,Cloneable
Represents a reference address to a resource.
- Author:
- Remy Maucherat
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Auth address type.static final String
Default factory for this reference.static final String
Description address type.static final String
Scope address type.static final String
Is this resource a singletonFields inherited from class javax.naming.Reference
addrs, classFactory, classFactoryLocation, className
-
Constructor Summary
ConstructorDescriptionResourceRef
(String resourceClass, String description, String scope, String auth, boolean singleton) Resource Reference.ResourceRef
(String resourceClass, String description, String scope, String auth, boolean singleton, String factory, String factoryLocation) Resource Reference. -
Method Summary
Methods inherited from class org.apache.naming.AbstractRef
getFactoryClassName, toString
-
Field Details
-
DEFAULT_FACTORY
Default factory for this reference.- See Also:
-
DESCRIPTION
Description address type.- See Also:
-
SCOPE
Scope address type.- See Also:
-
AUTH
Auth address type.- See Also:
-
SINGLETON
Is this resource a singleton- See Also:
-
-
Constructor Details
-
ResourceRef
public ResourceRef(String resourceClass, String description, String scope, String auth, boolean singleton) Resource Reference.- Parameters:
resourceClass
- Resource classdescription
- Description of the resourcescope
- Resource scopeauth
- Resource authenticationsingleton
- Is this resource a singleton (every lookup should return the same instance rather than a new instance)?
-
ResourceRef
public ResourceRef(String resourceClass, String description, String scope, String auth, boolean singleton, String factory, String factoryLocation) Resource Reference.- Parameters:
resourceClass
- Resource classdescription
- Description of the resourcescope
- Resource scopeauth
- Resource authenticationsingleton
- Is this resource a singleton (every lookup should return the same instance rather than a new instance)?factory
- The possibly null class name of the object's factory.factoryLocation
- The possibly null location from which to load the factory (e.g. URL)
-
-
Method Details
-
getDefaultFactoryClassName
- Specified by:
getDefaultFactoryClassName
in classAbstractRef
-