Interface ResourcesGenerator
public interface ResourcesGenerator
A component capable of dynamically generating resources to support an
ExtensionModel.
Although extensions resolve their functionality mainly on runtime, some configuration resources such as XML schemas, service registration files, spring bundles, or whatever resource the runtime requires need to be generated in compile or run time.
To determine which resources need to be generated, a standard SPI mechanism will be used to obtain instances of
GeneratedResourceFactory. Those factories will be used to create the resources needed by each extension.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptiongenerateFor(org.mule.runtime.api.meta.model.ExtensionModel extensionModel) Generates resources for the givenextensionby propagating the givenextensionModelthrough all the discoveredGeneratedResourceFactoryinstances.
-
Method Details
-
generateFor
Generates resources for the givenextensionby propagating the givenextensionModelthrough all the discoveredGeneratedResourceFactoryinstances.The generated resources are written to disk and returned for further processing.
- Parameters:
extensionModel- aExtensionModel
-