IResourceResolver
interface IResourceResolver
Known subtypes: BufferedImageResourceResolver, TextureResourceResolver
Package: dev.joid.lib.resource.resolver · Module: core · Source: IResourceResolver.java
Turns an input that is not a file, a URL or an asset, such as a texture of the host, into a resource.
Description
Section titled “Description”Resource.of(...) asks the resolvers, from the last registered, for the first that supports its input.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
boolean | supports(Object input) abstract | If true, the resolver turns that input into a resource. |
Resource | resolve(ResourceBuilder builder, Object input) abstract | Returns the resource of the input, built with the builder; called only for an input that supports accepts. |
Method details
Section titled “Method details”supports
Section titled “supports”boolean supports(Object input) abstract
If true, the resolver turns that input into a resource.
resolve
Section titled “resolve”Resource resolve(ResourceBuilder builder, Object input) abstract
Returns the resource of the input, built with the builder; called only for an input that supports accepts.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
