@ProviderType public final class ContextResource extends Object
| Constructor and Description |
|---|
ContextResource(org.apache.sling.api.resource.Resource resource,
String configRef) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getConfigRef() |
org.apache.sling.api.resource.Resource |
getResource() |
int |
hashCode() |
public ContextResource(@Nonnull org.apache.sling.api.resource.Resource resource, String configRef)
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.Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.