public final class DefaultImportedResource extends Object implements ImportedResource
ImportedResource.| Constructor and Description |
|---|
DefaultImportedResource(String resourceLocation,
ComponentMetadataAst metadata) |
DefaultImportedResource(String resourceLocation,
ComponentMetadataAst metadata,
String resolutionFailure) |
| Modifier and Type | Method and Description |
|---|---|
ComponentMetadataAst |
getMetadata() |
String |
getRawResourceLocation()
This method WILL NOT resolve any property placeholders to the actual values if present.
|
Optional<String> |
getResolutionFailure() |
String |
getResourceLocation() |
void |
updatePropertiesResolver(UnaryOperator<String> propertiesResolver)
Updates the properties resolution callback.
|
public DefaultImportedResource(String resourceLocation, ComponentMetadataAst metadata)
public DefaultImportedResource(String resourceLocation, ComponentMetadataAst metadata, String resolutionFailure)
public String getRawResourceLocation()
ImportedResourceImportedResource.getResourceLocation() if
properties resolution is needed.getRawResourceLocation in interface ImportedResourcepublic String getResourceLocation()
getResourceLocation in interface ImportedResourcepublic ComponentMetadataAst getMetadata()
getMetadata in interface ImportedResourcepublic Optional<String> getResolutionFailure()
getResolutionFailure in interface ImportedResourcepublic void updatePropertiesResolver(UnaryOperator<String> propertiesResolver)
ImportedResourceupdatePropertiesResolver in interface ImportedResourcepropertiesResolver - The new property resolution callback.Copyright © 2022 MuleSoft, Inc.. All rights reserved.