Package dev.enola.thing.message
Class ThingProviderAdapter
java.lang.Object
dev.enola.thing.message.ThingProviderAdapter
- All Implemented Interfaces:
Provider<String,,Thing> ProviderFromIRI<Thing>,ThingProvider
ThingProviderAdapter is a
ThingProvider which delegates to any ProviderFromIRI of
proto Thing, and then wraps the results with a ThingAdapter.-
Field Summary
Fields inherited from interface dev.enola.thing.repo.ThingProvider
CTX -
Constructor Summary
ConstructorsConstructorDescriptionThingProviderAdapter(ProviderFromIRI<Thing> protoThingProvider, DatatypeRepository datatypeRepository) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.enola.thing.repo.ThingProvider
get, get, get, get, getBuilder, getBuilder, getBuilder, getOptional
-
Constructor Details
-
ThingProviderAdapter
public ThingProviderAdapter(ProviderFromIRI<Thing> protoThingProvider, DatatypeRepository datatypeRepository)
-
-
Method Details
-
get
Description copied from interface:ThingProviderGet the Thing.- Specified by:
getin interfaceProvider<String,Thing> - Specified by:
getin interfaceProviderFromIRI<Thing>- Specified by:
getin interfaceThingProvider- Parameters:
iri- an IRI- Returns:
- a Thing [TODO: never null; but may be an empty Thing for an unknown IRI]
- Throws:
UncheckedIOException- if there was something at that IRI, but it could not be readConversionException- if there was a problem converting what was at the IRI to a Thing
-