public class DefaultDeclarationSession extends AbstractArtifactAgnosticService implements DeclarationSession
AbstractArtifactAgnosticService.ApplicationStartingException| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Stops and disposes all resources used by this
DeclarationSession. |
void |
disposeMetadataCache(org.mule.runtime.app.declaration.api.ComponentElementDeclaration component)
Disposes the
MetadataCache associated to the component metadata resolution which is
provided in order to store resources cross resolution by resolvers. |
org.mule.runtime.api.value.ValueResult |
getFieldValues(org.mule.runtime.app.declaration.api.ParameterizedElementDeclaration component,
String providerName,
String targetSelector)
Retrieve all
Value that can be configured for the field in the given parameter. |
org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer> |
getMetadataKeys(org.mule.runtime.app.declaration.api.ComponentElementDeclaration component)
Returns the list of keys that can be resolved associated to the specified component.
|
org.mule.runtime.api.sampledata.SampleDataResult |
getSampleData(org.mule.runtime.app.declaration.api.ComponentElementDeclaration component)
Retrieves any sample data available for the component.
|
org.mule.runtime.api.value.ValueResult |
getValues(org.mule.runtime.app.declaration.api.ParameterizedElementDeclaration component,
String providerName)
Retrieve all
Value that can be configured for the given parameter. |
org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.descriptor.ComponentMetadataTypesDescriptor> |
resolveComponentMetadata(org.mule.runtime.app.declaration.api.ComponentElementDeclaration component)
Retrieve all the dynamic metadata for the given component.
|
org.mule.runtime.api.connection.ConnectionValidationResult |
testConnection(String configName)
Test connectivity for the connection associated to the configuration with the provided name.
|
getStartedApplication, withTemporaryApplicationpublic org.mule.runtime.api.connection.ConnectionValidationResult testConnection(String configName)
DeclarationSessiontestConnection in interface DeclarationSessionconfigName - The name of the config for which to test connection.ConnectionValidationResult with the result of the connectivity testingpublic org.mule.runtime.api.value.ValueResult getValues(org.mule.runtime.app.declaration.api.ParameterizedElementDeclaration component,
String providerName)
DeclarationSessionValue that can be configured for the given parameter.getValues in interface DeclarationSessioncomponent - a ParameterizedElementDeclaration for the component from which the available
values can be used on the parameter . In case the value provider
requires any acting parameters to be able to resolve this values, those parameters
should be populated in this declaration. Also, if the Component requires values from a
Configuration, then its reference name should be specified in the declaration.providerName - the name of the value provider for which to resolve the
ValuesValueResult with the accepted parameter values to usepublic org.mule.runtime.api.value.ValueResult getFieldValues(org.mule.runtime.app.declaration.api.ParameterizedElementDeclaration component,
String providerName,
String targetSelector)
DeclarationSessionValue that can be configured for the field in the given parameter.getFieldValues in interface DeclarationSessioncomponent - a ParameterizedElementDeclaration for the component from which the available
values can be used on the parameter . In case the value provider
requires any acting parameters to be able to resolve this values, those parameters
should be populated in this declaration. Also, if the Component requires values from a
Configuration, then its reference name should be specified in the declaration.providerName - the name of the value provider for which to resolve the
ValuestargetSelector - The path to locate the field within the given parameterValueResult with the accepted parameter values to usepublic org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer> getMetadataKeys(org.mule.runtime.app.declaration.api.ComponentElementDeclaration component)
DeclarationSessiongetMetadataKeys in interface DeclarationSessioncomponent - the location of the MetadataKeyProvider component to query for its
available keysMetadataResult if the keys are successfully resolved Failure MetadataResult if there is an
error while resolving the keyspublic org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.descriptor.ComponentMetadataTypesDescriptor> resolveComponentMetadata(org.mule.runtime.app.declaration.api.ComponentElementDeclaration component)
DeclarationSessionresolveComponentMetadata in interface DeclarationSessioncomponent - the component whose dynamic metadata types are requiredMetadataResult of ComponentMetadataTypesDescriptor containing all the dynamic typespublic void disposeMetadataCache(org.mule.runtime.app.declaration.api.ComponentElementDeclaration component)
DeclarationSessionMetadataCache associated to the component metadata resolution which is
provided in order to store resources cross resolution by resolvers.disposeMetadataCache in interface DeclarationSessioncomponent - the component whose has a dynamic metadata types.public org.mule.runtime.api.sampledata.SampleDataResult getSampleData(org.mule.runtime.app.declaration.api.ComponentElementDeclaration component)
DeclarationSessiongetSampleData in interface DeclarationSessioncomponent - the component whose sample data is requiredSampleDataResult with the sample data messagepublic void dispose()
DeclarationSessionDeclarationSession.dispose in interface DeclarationSessiondispose in class AbstractArtifactAgnosticServiceCopyright © 2003–2025 MuleSoft, Inc.. All rights reserved.