Class ValueMapResourceWrapper

  • All Implemented Interfaces:
    Adaptable, Resource

    public class ValueMapResourceWrapper
    extends ResourceWrapper
    A resource wrapper that wraps an underlying resource with an empty ValueMap}, which can be modified accordingly. It is used for the scenario where we want to control the ValueMap returned by a resource.
    • Constructor Detail

      • ValueMapResourceWrapper

        public ValueMapResourceWrapper​(@Nonnull
                                       Resource resource,
                                       String resourceType)
        Instantiates a new wrapper.
        Parameters:
        resource - The resource to wrap
        resourceType - The resource type of the resource wrapper