public class ToolingMetadataServiceAdapter extends Object implements org.mule.tooling.client.api.metadata.MetadataService, Command
MetadataService that adapts Mule-API objects to DTOs| Constructor and Description |
|---|
ToolingMetadataServiceAdapter(org.mule.runtime.api.util.LazyValue<org.mule.runtime.ast.api.ArtifactAst> applicationModel,
MetadataProvider metadataProvider,
org.mule.runtime.api.util.LazyValue<MetadataCache> metadataCache,
org.mule.tooling.client.internal.serialization.Serializer serializer,
org.mule.runtime.api.util.LazyValue<org.mule.runtime.api.dsl.DslResolvingContext> dslResolvingContext,
org.mule.runtime.api.util.LazyValue<org.mule.runtime.core.internal.locator.ComponentLocator<org.mule.runtime.ast.api.ComponentAst>> componentLocator)
Creates an instance of this service adapter.
|
| Modifier and Type | Method and Description |
|---|---|
org.mule.tooling.client.api.feature.Feature<org.mule.tooling.client.api.feature.Action<org.mule.tooling.client.api.component.location.Location>> |
disposeMetadataCache() |
org.mule.tooling.client.api.metadata.MetadataResult<org.mule.tooling.client.api.metadata.MetadataKeysContainer> |
getMetadataKeys(org.mule.tooling.client.api.metadata.MetadataKeysRequest metadataKeysRequest) |
org.mule.tooling.client.api.feature.Feature<org.mule.tooling.client.api.feature.Action<org.mule.tooling.client.api.component.location.Location>> |
invalidateMetadataCacheKeys() |
Object |
invokeMethod(String methodName,
String[] classes,
String[] arguments)
Dispatcher that calls the method on this object by the given name and arguments.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFeatureEnabled, methodNotFound, notMatchingMethod, validateInputpublic ToolingMetadataServiceAdapter(org.mule.runtime.api.util.LazyValue<org.mule.runtime.ast.api.ArtifactAst> applicationModel,
MetadataProvider metadataProvider,
org.mule.runtime.api.util.LazyValue<MetadataCache> metadataCache,
org.mule.tooling.client.internal.serialization.Serializer serializer,
org.mule.runtime.api.util.LazyValue<org.mule.runtime.api.dsl.DslResolvingContext> dslResolvingContext,
org.mule.runtime.api.util.LazyValue<org.mule.runtime.core.internal.locator.ComponentLocator<org.mule.runtime.ast.api.ComponentAst>> componentLocator)
applicationModel - ArtifactAst to resolve the ComponentAst. Non null.metadataProvider - MetadataProvider for resolving metadata using Mule Runtime. Non null.metadataCache - MetadataCache to fetch Metadata from cache. Non null.serializer - Serializer to be used for sending a receiving arguments and responses in calls to the
ToolingRuntimeClient being useddslResolvingContext - DslResolvingContext to create a MetadataCacheIdGenerator to use for
generating keys in runtime cachepublic org.mule.tooling.client.api.metadata.MetadataResult<org.mule.tooling.client.api.metadata.MetadataKeysContainer> getMetadataKeys(org.mule.tooling.client.api.metadata.MetadataKeysRequest metadataKeysRequest)
throws org.mule.tooling.client.api.exception.ServiceUnavailableException
getMetadataKeys in interface org.mule.tooling.client.api.metadata.MetadataServiceorg.mule.tooling.client.api.exception.ServiceUnavailableExceptionpublic org.mule.tooling.client.api.feature.Feature<org.mule.tooling.client.api.feature.Action<org.mule.tooling.client.api.component.location.Location>> disposeMetadataCache()
disposeMetadataCache in interface org.mule.tooling.client.api.metadata.MetadataServicepublic org.mule.tooling.client.api.feature.Feature<org.mule.tooling.client.api.feature.Action<org.mule.tooling.client.api.component.location.Location>> invalidateMetadataCacheKeys()
invalidateMetadataCacheKeys in interface org.mule.tooling.client.api.metadata.MetadataServicepublic 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.