Package org.teavm.vm.spi
Interface TeaVMHost
- All Superinterfaces:
ServiceRepository
- All Known Implementing Classes:
TeaVM
A host of plugins for TeaVM. Plugins are provided with this interface in order to give them ability to extend TeaVM.
- Author:
- Alexey Andreev
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add(DependencyListener dependencyListener)
void
add(ClassHolderTransformer classTransformer)
void
add(MethodReference methodRef, BootstrapMethodSubstitutor substitutor)
void
add(MethodReference methodRef, DependencyPlugin dependencyPlugin)
Gets class loaded that is used by TeaVM.<T extends TeaVMHostExtension>
TgetExtension(Class<T> extensionType)
String[]
Gets configuration properties.<T> void
registerService(Class<T> type, T instance)
Methods inherited from interface org.teavm.common.ServiceRepository
getService
-
Method Details
-
add
-
add
-
add
-
add
-
getExtension
-
registerService
-
getClassLoader
ClassLoader getClassLoader()Gets class loaded that is used by TeaVM. This class loader is usually specified byTeaVMBuilder.setClassLoader(ClassLoader)
- Returns:
- class loader that can be used by plugins.
-
getProperties
Properties getProperties()Gets configuration properties. These properties are usually specified byTeaVM.setProperties(Properties)
.- Returns:
- a copy of all of the VM properties. Any further changes to returned objects will not be visible to VM.
-
getPlatformTags
String[] getPlatformTags()
-