public interface GeneratedResourceFactory
GeneratedResource instance from an ExtensionModel instance.
Implementations are to be reusable and thread-safe.| Modifier and Type | Method and Description |
|---|---|
Optional<GeneratedResource> |
generateResource(org.mule.runtime.api.meta.model.ExtensionModel extensionModel)
Creates a new
GeneratedResource from the given extensionModel. |
Optional<GeneratedResource> generateResource(org.mule.runtime.api.meta.model.ExtensionModel extensionModel)
GeneratedResource from the given extensionModel.
Because not every implementation of this class necessarily applies to
every ExtensionModel, this method returns an Optional
which will be empty if the kind of generated resource is not valid
for the given extensionModel
extensionModel - the ExtensionModel that requires the resourceOptional GeneratedResourceCopyright © 2017 MuleSoft, Inc.. All rights reserved.