Class LocalisationConfigurationPropertiesProvider

java.lang.Object
org.mule.runtime.api.component.AbstractComponent
org.mule.runtime.properties.api.DefaultConfigurationPropertiesProvider
org.mule.test.crafted.localisation.properties.extension.LocalisationConfigurationPropertiesProvider
All Implemented Interfaces:
org.mule.runtime.api.component.Component, org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.properties.api.ConfigurationPropertiesProvider

public class LocalisationConfigurationPropertiesProvider extends org.mule.runtime.properties.api.DefaultConfigurationPropertiesProvider
  • 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, UNKNOWN

    Fields inherited from class org.mule.runtime.api.component.AbstractComponent

    ANNOTATION_NAME, LOCATION_KEY, ROOT_CONTAINER_NAME_KEY

    Fields inherited from interface org.mule.runtime.api.component.Component

    ANNOTATIONS_PROPERTY_NAME, NS_MULE_DOCUMENTATION, NS_MULE_PARSER_METADATA

    Fields inherited from interface org.mule.runtime.api.lifecycle.Initialisable

    PHASE_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    LocalisationConfigurationPropertiesProvider(org.mule.runtime.properties.api.ResourceProvider resourceProvider, String file, String locale)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    createValue(String key, String value)
     
    Optional<org.mule.runtime.properties.api.ConfigurationProperty>
    provide(String configurationAttributeKey)
    Returns the formatted given key according to the format specified on the configuration properties file

    Methods inherited from class org.mule.runtime.properties.api.DefaultConfigurationPropertiesProvider

    createValueHelper, getDescription, getResourceInputStream, initialise, toString

    Methods inherited from class org.mule.runtime.api.component.AbstractComponent

    getAnnotation, getAnnotations, getDslSource, getIdentifier, getLocation, getRepresentation, getRootContainerLocation, initRootContainerName, setAnnotations

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LocalisationConfigurationPropertiesProvider

      public LocalisationConfigurationPropertiesProvider(org.mule.runtime.properties.api.ResourceProvider resourceProvider, String file, String locale)
  • Method Details

    • provide

      public Optional<org.mule.runtime.properties.api.ConfigurationProperty> provide(String configurationAttributeKey)
      Returns the formatted given key according to the format specified on the configuration properties file
      Specified by:
      provide in interface org.mule.runtime.properties.api.ConfigurationPropertiesProvider
      Overrides:
      provide in class org.mule.runtime.properties.api.DefaultConfigurationPropertiesProvider
      Parameters:
      configurationAttributeKey -
      Returns:
      an Optional with the formatted value of the given key or Optional.empty() otherwise.
    • createValue

      protected String createValue(String key, String value)
      Overrides:
      createValue in class org.mule.runtime.properties.api.DefaultConfigurationPropertiesProvider