Class ContextResource
java.lang.Object
org.apache.sling.caconfig.resource.spi.ContextResource
Holds reference to a context root resource and configuration reference path
that was detected for the configuration context.
-
Constructor Summary
ConstructorsConstructorDescriptionContextResource
(@NotNull Resource resource, String configRef) Deprecated.ContextResource
(@NotNull Resource resource, String configRef, int serviceRanking) -
Method Summary
-
Constructor Details
-
ContextResource
- Parameters:
resource
- Context root resourceconfigRef
- Config reference (normally a resource path). May be null if theConfigurationResourceResolvingStrategy
has it's own concept of detecting the matching configuration.serviceRanking
- Service ranking of the context path strategy implementation
-
ContextResource
Deprecated.- Parameters:
resource
- Context root resourceconfigRef
- Config reference (normally a resource path). May be null if theConfigurationResourceResolvingStrategy
has it's own concept of detecting the matching configuration.
-
-
Method Details
-
getResource
- Returns:
- Context root resource
-
getConfigRef
- Returns:
- Config reference (normally a resource path).
May be null if the
ConfigurationResourceResolvingStrategy
has it's own concept of detecting the matching configuration.
-
getServiceRanking
public int getServiceRanking()- Returns:
- Service ranking of the context path strategy implementation
-
hashCode
public int hashCode() -
equals
-
ContextResource(Resource, String, int)