Class DefaultImportedResourceBuilder
java.lang.Object
org.mule.runtime.ast.internal.builder.DefaultImportedResourceBuilder
- All Implemented Interfaces:
ImportedResourceBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the target imported resource.withMetadata(ComponentMetadataAst metadata) Sets the imported resource metadata to the builder.withResolutionFailure(String failureMessage) Sets the failure caused when resolving this import, if resolution failed.withResourceLocation(String resourceLocation) Sets the imported resource name to the builder.
-
Constructor Details
-
DefaultImportedResourceBuilder
public DefaultImportedResourceBuilder()
-
-
Method Details
-
withResourceLocation
Description copied from interface:ImportedResourceBuilderSets the imported resource name to the builder.- Specified by:
withResourceLocationin interfaceImportedResourceBuilder- Parameters:
resourceLocation- the resource location.- Returns:
- the builder with the name set.
-
withMetadata
Description copied from interface:ImportedResourceBuilderSets the imported resource metadata to the builder.- Specified by:
withMetadatain interfaceImportedResourceBuilder- Parameters:
metadata- the component metadata.- Returns:
- the builder with the metadata set.
-
withResolutionFailure
Description copied from interface:ImportedResourceBuilderSets the failure caused when resolving this import, if resolution failed.- Specified by:
withResolutionFailurein interfaceImportedResourceBuilder- Parameters:
failureMessage- a message explaining why the import resolution failed.- Returns:
- the builder with the metadata set.
-
build
Description copied from interface:ImportedResourceBuilderBuilds the target imported resource.- Specified by:
buildin interfaceImportedResourceBuilder- Returns:
- the target imported resource.
-