@Retention(value=RUNTIME) @Target(value=TYPE) public static @interface TruffleInstrument.Registration
instrument
implementations for
automatic discovery.Modifier and Type | Optional Element and Description |
---|---|
String |
id
A custom machine identifier for this instrument.
|
boolean |
internal
Specifies whether the instrument is accessible using the polyglot API.
|
String |
name
The name of the instrument in an arbitrary format for humans.
|
Class<?>[] |
services
Declarative list of classes this instrument is known to provide.
|
String |
version
The version for instrument in an arbitrary format.
|
public abstract String id
public abstract String name
public abstract String version
Engine.getVersion()
by default.public abstract boolean internal
public abstract Class<?>[] services
onCreate
method and instantiate and register
all
here in defined services.
Instruments automatically get created when their registered
service is requested
.