@ProviderType
public final class ContextResource
extends java.lang.Object
Constructor and Description |
---|
ContextResource(Resource resource,
java.lang.String configRef)
Deprecated.
|
ContextResource(Resource resource,
java.lang.String configRef,
int serviceRanking) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getConfigRef() |
Resource |
getResource() |
int |
getServiceRanking() |
int |
hashCode() |
public ContextResource(@Nonnull Resource resource, java.lang.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, java.lang.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 java.lang.String getConfigRef()
ConfigurationResourceResolvingStrategy
has it's own concept of detecting the matching configuration.public int getServiceRanking()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 The Apache Software Foundation. All rights reserved.