Interface ConfigurationProvider
- All Superinterfaces:
org.mule.runtime.api.component.Component
- All Known Subinterfaces:
ExpirableConfigurationProvider
@NoImplement
public interface ConfigurationProvider
extends org.mule.runtime.api.component.Component
A component responsible for providing instances which are realizations of a given
ConfigurationModel.
Instances are provided through the get(Event) method. When that method is invoked, it's up to each implementation to
return a brand new instance or one which has already been returned before.- Since:
- 1.0
-
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 interface org.mule.runtime.api.component.Component
ANNOTATIONS_PROPERTY_NAME, NS_MULE_DOCUMENTATION, NS_MULE_PARSER_METADATA -
Method Summary
Modifier and TypeMethodDescriptionget(org.mule.runtime.api.event.Event event) Returns aConfigurationInstanceorg.mule.runtime.api.meta.model.config.ConfigurationModelorg.mule.runtime.api.meta.model.ExtensionModelgetName()The name under which this provider has been registeredbooleanMethods inherited from interface org.mule.runtime.api.component.Component
getAnnotation, getAnnotations, getDslSource, getIdentifier, getLocation, getRepresentation, getRootContainerLocation, setAnnotations
-
Method Details
-
get
Returns aConfigurationInstanceThis method may return an instance already returned in the past or a brand new one.- Parameters:
event- the event which processing requires the instance- Returns:
- a
ConfigurationInstance
-
getExtensionModel
org.mule.runtime.api.meta.model.ExtensionModel getExtensionModel()- Returns:
- the
ExtensionModelwhich owns thegetConfigurationModel()
-
getConfigurationModel
org.mule.runtime.api.meta.model.config.ConfigurationModel getConfigurationModel()- Returns:
- the
ConfigurationModelfor the instances returned byget(Event)
-
getName
String getName()The name under which this provider has been registered- Returns:
- this provider's name
-
isDynamic
boolean isDynamic()- Returns:
- Whether the returned config is dynamic or static
-