public class InternalDeclarationSession extends Object implements DeclarationSession
| Modifier and Type | Field and Description |
|---|---|
protected MetadataCacheManager |
metadataCacheManager |
| 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 componentElementDeclaration)
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 componentElementDeclaration)
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 componentElementDeclaration)
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 componentElementDeclaration)
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.
|
@Inject @Named(value="_metadataCacheManager") protected MetadataCacheManager metadataCacheManager
public 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 parameterizedElementDeclaration,
String providerName)
DeclarationSessionValue that can be configured for the given parameter.getValues in interface DeclarationSessionparameterizedElementDeclaration - 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 parameterizedElementDeclaration,
String providerName,
String targetSelector)
DeclarationSessionValue that can be configured for the field in the given parameter.getFieldValues in interface DeclarationSessionparameterizedElementDeclaration - 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 componentElementDeclaration)
DeclarationSessiongetMetadataKeys in interface DeclarationSessioncomponentElementDeclaration - 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 componentElementDeclaration)
DeclarationSessionresolveComponentMetadata in interface DeclarationSessioncomponentElementDeclaration - the component whose dynamic metadata types are requiredMetadataResult of ComponentMetadataTypesDescriptor containing all the dynamic typespublic void disposeMetadataCache(org.mule.runtime.app.declaration.api.ComponentElementDeclaration componentElementDeclaration)
DeclarationSessionMetadataCache associated to the component metadata resolution which is
provided in order to store resources cross resolution by resolvers.disposeMetadataCache in interface DeclarationSessioncomponentElementDeclaration - the component whose has a dynamic metadata types.public org.mule.runtime.api.sampledata.SampleDataResult getSampleData(org.mule.runtime.app.declaration.api.ComponentElementDeclaration componentElementDeclaration)
DeclarationSessiongetSampleData in interface DeclarationSessioncomponentElementDeclaration - the component whose sample data is requiredSampleDataResult with the sample data messagepublic void dispose()
DeclarationSessionDeclarationSession.dispose in interface DeclarationSessionCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.