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.config.internal.model.ApplicationModel> applicationModel,
org.mule.runtime.api.util.LazyValue<Set<org.mule.runtime.api.meta.model.ExtensionModel>> extensionModels,
MetadataProvider metadataProvider,
org.mule.runtime.api.util.LazyValue<org.mule.tooling.client.api.datasense.MetadataCache> metadataCache,
Map<String,String> toolingArtifactProperties,
org.mule.tooling.client.internal.serialization.Serializer serializer)
Creates an instance of this service adapter.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deserialize(String content) |
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) |
Object |
invokeMethod(String methodName,
String[] classes,
String[] arguments)
Dispatcher that calls the method on this object by the given name and arguments.
|
String |
serialize(Object object) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFeatureEnabled, methodNotFound, notMatchingMethodpublic ToolingMetadataServiceAdapter(org.mule.runtime.api.util.LazyValue<org.mule.runtime.config.internal.model.ApplicationModel> applicationModel,
org.mule.runtime.api.util.LazyValue<Set<org.mule.runtime.api.meta.model.ExtensionModel>> extensionModels,
MetadataProvider metadataProvider,
org.mule.runtime.api.util.LazyValue<org.mule.tooling.client.api.datasense.MetadataCache> metadataCache,
Map<String,String> toolingArtifactProperties,
org.mule.tooling.client.internal.serialization.Serializer serializer)
applicationModel - ApplicationModel to resolve the ComponentModel. Non null.metadataProvider - MetadataProvider for resolving metadata using Mule Runtime. Non null.metadataCache - MetadataCache to fetch Metadata from cache. Non null.public <T> T deserialize(String content)
public 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 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 © 2019 MuleSoft, Inc.. All rights reserved.