Package org.teavm.vm.spi
Interface TeaVMHost
-
- All Superinterfaces:
ServiceRepository
- All Known Implementing Classes:
TeaVM
public interface TeaVMHost extends ServiceRepository
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(DependencyListener dependencyListener)voidadd(ClassHolderTransformer classTransformer)voidadd(MethodReference methodRef, BootstrapMethodSubstitutor substitutor)voidadd(MethodReference methodRef, DependencyPlugin dependencyPlugin)ClassLoadergetClassLoader()Gets class loaded that is used by TeaVM.<T extends TeaVMHostExtension>
TgetExtension(Class<T> extensionType)String[]getPlatformTags()PropertiesgetProperties()Gets configuration properties.<T> voidregisterService(Class<T> type, T instance)-
Methods inherited from interface org.teavm.common.ServiceRepository
getService
-
-
-
-
Method Detail
-
add
void add(DependencyListener dependencyListener)
-
add
void add(ClassHolderTransformer classTransformer)
-
add
void add(MethodReference methodRef, BootstrapMethodSubstitutor substitutor)
-
add
void add(MethodReference methodRef, DependencyPlugin dependencyPlugin)
-
getExtension
<T extends TeaVMHostExtension> T getExtension(Class<T> extensionType)
-
registerService
<T> void registerService(Class<T> type, T instance)
-
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()
-
-