public class DefaultToolingRuntimeClientFactory extends Object implements org.mule.tooling.client.api.ToolingRuntimeClientBuilderFactory, Command, org.mule.tooling.client.api.Disposable
ToolingRuntimeClientBuilderFactory for creating ToolingRuntimeClients.| Constructor and Description |
|---|
DefaultToolingRuntimeClientFactory(String toolingVersion) |
DefaultToolingRuntimeClientFactory(String toolingVersion,
File workingDirectory) |
| Modifier and Type | Method and Description |
|---|---|
org.mule.tooling.client.api.ToolingRuntimeClient.Builder |
create() |
static org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoader |
createContainerClassLoader(org.mule.runtime.container.api.ModuleRepository moduleRepository) |
org.mule.runtime.container.api.ModuleRepository |
createModuleRepository() |
void |
dispose() |
Object |
invokeMethod(String methodName,
String[] classes,
String[] arguments)
Dispatcher that calls the method on this object by the given name and arguments.
|
void |
setSerialization(String name)
Changes the serialization implementation, as the API and implementations cannot be changed I had to add this method that will
only be called using reflection and whenever the API supports more than one serialization, if not it will continue using Kryo
as the default serializer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFeatureEnabled, methodNotFound, notMatchingMethod, validateInputpublic DefaultToolingRuntimeClientFactory(String toolingVersion)
public void setSerialization(String name)
name - the serialization name to be enabled.public static org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoader createContainerClassLoader(org.mule.runtime.container.api.ModuleRepository moduleRepository)
public org.mule.runtime.container.api.ModuleRepository createModuleRepository()
public org.mule.tooling.client.api.ToolingRuntimeClient.Builder create()
create in interface org.mule.tooling.client.api.ToolingRuntimeClientBuilderFactorypublic void dispose()
dispose in interface org.mule.tooling.client.api.Disposablepublic Object invokeMethod(String methodName, String[] classes, String[] arguments)
CommandinvokeMethod in interface CommandmethodName - the name of the method to be invoked.classes - array of class names for arguments.arguments - array of arguments serialized as JSON.Object, in case of a service method invocation it will return the DTO serialized to JSON or the instance in
case of a service instance.Copyright © 2024 MuleSoft, Inc.. All rights reserved.