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(Application application,
MetadataProvider metadataProvider,
org.mule.tooling.client.api.datasense.MetadataCache metadataCache)
Creates an instance of this service adapter.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmethodNotFound, notMatchingMethodpublic ToolingMetadataServiceAdapter(Application application, MetadataProvider metadataProvider, org.mule.tooling.client.api.datasense.MetadataCache metadataCache)
application - Application to resolve the ApplicationModel. Non null.metadataProvider - MetadataProvider for resolving metadata using Mule Runtime. Non null.metadataCache - MetadataCache to fetch Metadata from cache. Non null.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 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 © 2017 MuleSoft, Inc.. All rights reserved.