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 SummaryFieldsModifier 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.Referenceaddrs, classFactory, classFactoryLocation, className
- 
Constructor SummaryConstructorsConstructorDescriptionResourceRef(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 SummaryMethods inherited from class org.apache.naming.AbstractRefgetFactoryClassName, toString
- 
Field Details- 
DEFAULT_FACTORY
- 
DESCRIPTION
- 
SCOPE
- 
AUTH
- 
SINGLETON
 
- 
- 
Constructor Details- 
ResourceRefpublic ResourceRef(String resourceClass, String description, String scope, String auth, boolean singleton) Resource Reference.- Parameters:
- resourceClass- Resource class
- description- Description of the resource
- scope- Resource scope
- auth- Resource authentication
- singleton- Is this resource a singleton (every lookup should return the same instance rather than a new instance)?
 
- 
ResourceRefpublic ResourceRef(String resourceClass, String description, String scope, String auth, boolean singleton, String factory, String factoryLocation) Resource Reference.- Parameters:
- resourceClass- Resource class
- description- Description of the resource
- scope- Resource scope
- auth- Resource authentication
- singleton- 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 class- AbstractRef
 
 
-