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
FieldsModifier and TypeFieldDescriptionstatic final StringAuth address type.static final StringDefault factory for this reference.static final StringDescription address type.static final StringScope address type.static final StringIs this resource a singletonFields inherited from class javax.naming.Reference
addrs, classFactory, classFactoryLocation, className -
Constructor Summary
ConstructorsConstructorDescriptionResourceRef(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
-
DESCRIPTION
-
SCOPE
-
AUTH
-
SINGLETON
-
-
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:
getDefaultFactoryClassNamein classAbstractRef
-