Skip to content

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.

Resource.of(...) asks the resolvers, from the last registered, for the first that supports its input.

ReturnsSignatureSummary
booleansupports(Object input) abstractIf true, the resolver turns that input into a resource.
Resourceresolve(ResourceBuilder builder, Object input) abstractReturns the resource of the input, built with the builder; called only for an input that supports accepts.

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.


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

Report a problem with this page