Class SecureConfigurationPropertiesProvider
java.lang.Object
org.mule.runtime.api.component.AbstractComponent
org.mule.runtime.properties.api.DefaultConfigurationPropertiesProvider
org.mule.test.crafted.config.properties.extension.SecureConfigurationPropertiesProvider
- All Implemented Interfaces:
org.mule.runtime.api.component.Component,org.mule.runtime.api.lifecycle.Disposable,org.mule.runtime.api.lifecycle.Initialisable,org.mule.runtime.properties.api.ConfigurationPropertiesProvider
public class SecureConfigurationPropertiesProvider
extends org.mule.runtime.properties.api.DefaultConfigurationPropertiesProvider
implements org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.api.lifecycle.Disposable
Artifact attributes configuration. This class represents a single secure-configuration-properties element from the
configuration.
- Since:
- 4.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.mule.runtime.api.component.Component
org.mule.runtime.api.component.Component.Annotations -
Field Summary
Fields inherited from class org.mule.runtime.properties.api.DefaultConfigurationPropertiesProvider
configurationAttributes, fileLocation, UNKNOWNFields inherited from class org.mule.runtime.api.component.AbstractComponent
ANNOTATION_NAME, LOCATION_KEY, ROOT_CONTAINER_NAME_KEYFields inherited from interface org.mule.runtime.api.component.Component
ANNOTATIONS_PROPERTY_NAME, NS_MULE_DOCUMENTATION, NS_MULE_PARSER_METADATAFields inherited from interface org.mule.runtime.api.lifecycle.Disposable
PHASE_NAMEFields inherited from interface org.mule.runtime.api.lifecycle.Initialisable
PHASE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionSecureConfigurationPropertiesProvider(org.mule.runtime.properties.api.ResourceProvider resourceProvider, String file, String algorithm, String mode) -
Method Summary
Methods inherited from class org.mule.runtime.properties.api.DefaultConfigurationPropertiesProvider
createValueHelper, getDescription, getResourceInputStream, toStringMethods inherited from class org.mule.runtime.api.component.AbstractComponent
getAnnotation, getAnnotations, getDslSource, getIdentifier, getLocation, getRepresentation, getRootContainerLocation, initRootContainerName, setAnnotations
-
Constructor Details
-
SecureConfigurationPropertiesProvider
-
-
Method Details
-
initialise
public void initialise() throws org.mule.runtime.api.lifecycle.InitialisationException- Specified by:
initialisein interfaceorg.mule.runtime.api.lifecycle.Initialisable- Overrides:
initialisein classorg.mule.runtime.properties.api.DefaultConfigurationPropertiesProvider- Throws:
org.mule.runtime.api.lifecycle.InitialisationException
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.mule.runtime.api.lifecycle.Disposable
-
provide
public Optional<org.mule.runtime.properties.api.ConfigurationProperty> provide(String configurationAttributeKey) Returns the configuration property loaded from the file with the given key. MULE-15032: There are 2 special keys used for testing purposes: "lifecycle::initialize" and "lifecycle::dispose". If this custom configuration properties provider is loaded by SPI in any integration test, asking for a property with any of those keys will return the number of times this provider was initialized or disposed. This was added as a workaround for testing that those phases were actually being applied to the ConfigurationPropertiesProviders when creating or clearing an ApplicationModel. keep in mind that this extension is only intended for testing purposes and this behaviour will not be replicated for any productive code.- Specified by:
providein interfaceorg.mule.runtime.properties.api.ConfigurationPropertiesProvider- Overrides:
providein classorg.mule.runtime.properties.api.DefaultConfigurationPropertiesProvider- Parameters:
configurationAttributeKey-- Returns:
- an Optional with the value of the given key or
Optional.empty()otherwise.
-
createValue
- Overrides:
createValuein classorg.mule.runtime.properties.api.DefaultConfigurationPropertiesProvider
-