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(ExtensionManagerAdapter 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,
VersionResolver versionResolver)
It will register the extensions described or annotated and it will generate their resources.
|
void |
discoverExtensions(org.mule.runtime.extension.api.declaration.spi.Describer[] describers,
Class<?>[] annotatedClasses)
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) |
public ExtensionsTestInfrastructureDiscoverer(ExtensionManagerAdapter 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 - ExtensionManagerAdapter to be used for registering the extensions{@link - RuntimeException} if there was an error while creating the MANIFEST.MF filepublic void discoverExtensions(org.mule.runtime.extension.api.declaration.spi.Describer[] describers,
Class<?>[] annotatedClasses)
describers - if empty it will use annotatedClasses param to build the describersannotatedClasses - used to build the describersIllegalStateException - if no extensions can be describedpublic org.mule.runtime.api.meta.model.ExtensionModel discoverExtension(Class<?> annotatedClass, VersionResolver versionResolver)
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)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.