@NoImplement
public interface DeclarationSession
| 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 parameterizedElementDeclaration,
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 parameterizedElementDeclaration,
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.
|
org.mule.runtime.api.connection.ConnectionValidationResult testConnection(String configName)
configName - The name of the config for which to test connection.ConnectionValidationResult with the result of the connectivity testingBundleNotFoundException - if any of the dependencies defined for the session could not be resolvedorg.mule.runtime.api.value.ValueResult getValues(org.mule.runtime.app.declaration.api.ParameterizedElementDeclaration parameterizedElementDeclaration,
String providerName)
Value that can be configured for the given parameter.parameterizedElementDeclaration - 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 useBundleNotFoundException - if any of the dependencies defined for the session could not be resolvedorg.mule.runtime.api.value.ValueResult getFieldValues(org.mule.runtime.app.declaration.api.ParameterizedElementDeclaration parameterizedElementDeclaration,
String providerName,
String targetSelector)
Value that can be configured for the field in the given parameter.parameterizedElementDeclaration - 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 useBundleNotFoundException - if any of the dependencies defined for the session could not be resolvedorg.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer> getMetadataKeys(org.mule.runtime.app.declaration.api.ComponentElementDeclaration component)
component - 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 keysBundleNotFoundException - if any of the dependencies defined for the session could not be resolvedorg.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.descriptor.ComponentMetadataTypesDescriptor> resolveComponentMetadata(org.mule.runtime.app.declaration.api.ComponentElementDeclaration component)
component - the component whose dynamic metadata types are requiredMetadataResult of ComponentMetadataTypesDescriptor containing all the dynamic typesBundleNotFoundException - if any of the dependencies defined for the session could not be resolvedvoid disposeMetadataCache(org.mule.runtime.app.declaration.api.ComponentElementDeclaration component)
MetadataCache associated to the component metadata resolution which is
provided in order to store resources cross resolution by resolvers.component - the component whose has a dynamic metadata types.org.mule.runtime.api.sampledata.SampleDataResult getSampleData(org.mule.runtime.app.declaration.api.ComponentElementDeclaration component)
component - the component whose sample data is requiredSampleDataResult with the sample data messageBundleNotFoundException - if any of the dependencies defined for the session could not be resolvedvoid dispose()
DeclarationSession.Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.