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