public class ExtensionsTestInfrastructureDiscoverer extends Object
ExtensionManager.
Once extensions are registered, a ResourcesGenerator is used to automatically generate any backing resources needed
(XSD schemas, spring bundles, etc).
In this way, the user experience is greatly simplified when running the test either through an IDE or build tool such as maven
or gradle.
| Constructor and Description |
|---|
ExtensionsTestInfrastructureDiscoverer(org.mule.runtime.core.api.extension.ExtensionManager extensionManagerAdapter)
Creates a
ExtensionsTestInfrastructureDiscoverer that will use the extensionManager passed here in order to register
the extensions, resources for the extensions will be created in the generatedResourcesDirectory. |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.meta.model.ExtensionModel |
discoverExtension(Class<?> annotatedClass,
org.mule.runtime.extension.api.loader.ExtensionModelLoader loader)
It will register the extensions described or annotated and it will generate their resources.
|
List<org.mule.runtime.extension.api.resources.GeneratedResource> |
generateDslResources(File generatedResourcesDirectory) |
List<org.mule.runtime.extension.api.resources.GeneratedResource> |
generateDslResources(File generatedResourcesDirectory,
org.mule.runtime.api.meta.model.ExtensionModel forExtensionModel) |
List<org.mule.runtime.extension.api.resources.GeneratedResource> |
generateLoaderResources(org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
File generatedResourcesDirectory) |
void |
generateSchemaTestResource(org.mule.runtime.api.meta.model.ExtensionModel model,
File generatedResourcesDirectory) |
public ExtensionsTestInfrastructureDiscoverer(org.mule.runtime.core.api.extension.ExtensionManager extensionManagerAdapter)
ExtensionsTestInfrastructureDiscoverer that will use the extensionManager passed here in order to register
the extensions, resources for the extensions will be created in the generatedResourcesDirectory.extensionManagerAdapter - ExtensionManager to be used for registering the extensions{@link - RuntimeException} if there was an error while creating the MANIFEST.MF filepublic org.mule.runtime.api.meta.model.ExtensionModel discoverExtension(Class<?> annotatedClass, org.mule.runtime.extension.api.loader.ExtensionModelLoader loader)
List of the resources generated for the given describers or annotated classesIllegalStateException - if no extensions can be describedpublic List<org.mule.runtime.extension.api.resources.GeneratedResource> generateLoaderResources(org.mule.runtime.api.meta.model.ExtensionModel extensionModel, File generatedResourcesDirectory)
public List<org.mule.runtime.extension.api.resources.GeneratedResource> generateDslResources(File generatedResourcesDirectory)
public void generateSchemaTestResource(org.mule.runtime.api.meta.model.ExtensionModel model,
File generatedResourcesDirectory)
Copyright © 2003–2019 MuleSoft, Inc.. All rights reserved.