Class InternalResourceProvider
java.lang.Object
com.oracle.truffle.api.provider.InternalResourceProvider
Used to register an optional
InternalResource using a ServiceLoader. This
interface is not intended to be implemented directly by a language developer, rather the
implementation is generated by the Truffle DSL.- Since:
- 23.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ObjectCreates anInternalResourceinstance.protected abstract StringProvides the identifier of the language or instrument to which the resource belongs.protected abstract StringAn internal resource identifier.
-
Constructor Details
-
InternalResourceProvider
public InternalResourceProvider()
-
-
Method Details
-
getComponentId
Provides the identifier of the language or instrument to which the resource belongs.- Since:
- 23.1
-
getResourceId
An internal resource identifier. The value is derived fromInternalResource.Id.value().- Since:
- 23.1
-
createInternalResource
Creates anInternalResourceinstance.- Since:
- 23.1
-