public class ResourceRef extends AbstractRef
Modifier and Type | Field and Description |
---|---|
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.
|
static String |
SINGLETON
Is this resource a singleton
|
addrs, classFactory, classFactoryLocation, className
Constructor and Description |
---|
ResourceRef(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.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getDefaultFactoryClassName() |
getFactoryClassName, toString
public static final String DEFAULT_FACTORY
public static final String DESCRIPTION
public static final String SCOPE
public static final String AUTH
public static final String SINGLETON
public ResourceRef(String resourceClass, String description, String scope, String auth, boolean singleton)
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)?public ResourceRef(String resourceClass, String description, String scope, String auth, boolean singleton, String factory, String factoryLocation)
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)protected String getDefaultFactoryClassName()
getDefaultFactoryClassName
in class AbstractRef
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.