public class ResourceModelResolverImpl extends Object implements io.neba.api.services.ResourceModelResolver
Resource
to a ResourceModel
if a model is registered for the resource type
.
adapted
to a specific target type.ResourceModel.value()
, this provider
may return null
since there are no means to automatically resolve such ambiguities.Constructor and Description |
---|
ResourceModelResolverImpl() |
Modifier and Type | Method and Description |
---|---|
Object |
resolveMostSpecificModel(org.apache.sling.api.resource.Resource resource) |
Object |
resolveMostSpecificModelIncludingModelsForBaseTypes(org.apache.sling.api.resource.Resource resource) |
Object |
resolveMostSpecificModelWithName(org.apache.sling.api.resource.Resource resource,
String name) |
public Object resolveMostSpecificModelWithName(org.apache.sling.api.resource.Resource resource, String name)
resolveMostSpecificModelWithName
in interface io.neba.api.services.ResourceModelResolver
public Object resolveMostSpecificModel(org.apache.sling.api.resource.Resource resource)
resolveMostSpecificModel
in interface io.neba.api.services.ResourceModelResolver
public Object resolveMostSpecificModelIncludingModelsForBaseTypes(org.apache.sling.api.resource.Resource resource)
resolveMostSpecificModelIncludingModelsForBaseTypes
in interface io.neba.api.services.ResourceModelResolver
Copyright © 2024. All rights reserved.