@ProviderType public final class ContextResource extends Object
Constructor and Description |
---|
ContextResource(Resource resource,
String configRef)
Deprecated.
|
ContextResource(Resource resource,
String configRef,
int serviceRanking) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getConfigRef() |
Resource |
getResource() |
int |
getServiceRanking() |
int |
hashCode() |
public ContextResource(@Nonnull Resource resource, String configRef, int serviceRanking)
resource
- Context root resourceconfigRef
- Config reference (normally a resource path).
May be null if the ConfigurationResourceResolvingStrategy
has it's own concept of detecting the matching configuration.serviceRanking
- Service ranking of the context path strategy implementation@Deprecated public ContextResource(@Nonnull Resource resource, String configRef)
ContextResource(Resource, String, int)
resource
- Context root resourceconfigRef
- Config reference (normally a resource path).
May be null if the ConfigurationResourceResolvingStrategy
has it's own concept of detecting the matching configuration.@Nonnull public Resource getResource()
@CheckForNull public String getConfigRef()
ConfigurationResourceResolvingStrategy
has it's own concept of detecting the matching configuration.public int getServiceRanking()
Copyright © 2017 The Apache Software Foundation. All rights reserved.