public class GeneratedResource
An in memory generated resource. This class also overrides some parent Spring AbstractResource methods to ensure
compatibility with the ResourceHttpRequestHandler.
Note that this class intentionally does not subclass Spring's InMemoryResource and instead has copied
the fields here because InMemoryResource does not provide a default constructor. This causes issues when
deserializing an instance from disk (such as in a caching scenario that overflows from memory to disk).
Note: This constructor should not be explicitly used
To properly allow for serialization, we must provide this no-arg constructor that will
create a "dummy" GeneratedResource. The appropriate fields will be set during deserialization.
public GeneratedResource(byte source,