public interface ExternalResourceBinding extends MetaDataObject
ExternalResourceDependency
to an
ExternalResourceDescription
. The biding has two parts - the
key
, which indicates the resource dependency being bound, and the
resource name
, which identifies the resource to which that dependency
is bound.Modifier and Type | Field and Description |
---|---|
static ExternalResourceBinding[] |
EMPTY_RESOURCE_BINDINGS |
Modifier and Type | Method and Description |
---|---|
String |
getKey()
Retrieves the key that identifies the
ExternalResourceDependency being bound. |
String |
getResourceName()
Retrieves the name of the actual Resource instance that will satisfy this dependency.
|
void |
setKey(String aKey)
Sets the key that identifies the
ExternalResourceDependency
being bound. |
void |
setResourceName(String aName)
Sets the name of the actual Resource instance that will satisfy this dependency.
|
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
static final ExternalResourceBinding[] EMPTY_RESOURCE_BINDINGS
String getKey()
ExternalResourceDependency
being bound. If this binding is
declared in a primitive component, this is exactly the same key as is specified in the
ExternalResourceDependency
.
Within an aggregate, a slash-separated name is used to identify which component the binding
applies to. For example, if an Aggregate AE contains an annotator with key
annotator1
which declares a resource dependency myResource
, that
Aggregate AE could binding that resource dependency by using the key
annotator1/myResource
.
void setKey(String aKey)
ExternalResourceDependency
being bound. If this binding is declared in a primitive component, this is exactly the same key
as is specified in the ExternalResourceDependency
.
Within an aggregate, a slash-separated name is used to identify which component the binding
applies to. For example, if an Aggregate AE contains an annotator with key
annotator1
which declares a resource dependency myResource
, that
Aggregate AE could binding that resource dependency by using the key
annotator1/myResource
.
aKey
- the key for this resource binding.String getResourceName()
ExternalResourceDescription
within the enclosing
ResourceManagerConfiguration
object.void setResourceName(String aName)
ExternalResourceDescription
within the enclosing
ResourceManagerConfiguration
object.aName
- the name of the resource satisfying this dependency.Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.