public abstract class BaseJavetInterceptor extends java.lang.Object implements IJavetInterceptor
Modifier and Type | Field and Description |
---|---|
protected V8Runtime |
v8Runtime
The V8 runtime.
|
Constructor and Description |
---|
BaseJavetInterceptor(V8Runtime v8Runtime)
Instantiates a new Base javet interceptor.
|
Modifier and Type | Method and Description |
---|---|
V8Runtime |
getV8Runtime()
Gets V8 runtime.
|
abstract boolean |
register(IV8ValueObject... iV8ValueObjects)
Register the interceptor to the given V8 value object.
|
abstract boolean |
unregister(IV8ValueObject... iV8ValueObjects)
Unregister the interceptor from the given V8 value object.
|
protected V8Runtime v8Runtime
public BaseJavetInterceptor(V8Runtime v8Runtime)
v8Runtime
- the V8 runtimepublic V8Runtime getV8Runtime()
public abstract boolean register(IV8ValueObject... iV8ValueObjects) throws JavetException
IJavetInterceptor
register
in interface IJavetInterceptor
iV8ValueObjects
- the V8 value objectsJavetException
- the javet exceptionpublic abstract boolean unregister(IV8ValueObject... iV8ValueObjects) throws JavetException
IJavetInterceptor
unregister
in interface IJavetInterceptor
iV8ValueObjects
- the V8 value objectsJavetException
- the javet exception