Package com.oracle.truffle.api.provider
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Object
Creates anInternalResource
instance.protected abstract String
Provides the identifier of the language or instrument to which the resource belongs.protected abstract String
An 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 anInternalResource
instance.- Since:
- 23.1
-