public class SpringConfigurationComponentLocator extends Object implements org.mule.runtime.api.component.location.ConfigurationComponentLocator
ConfigurationComponentLocator.
since 4.0| Constructor and Description |
|---|
SpringConfigurationComponentLocator() |
SpringConfigurationComponentLocator(Function<String,Boolean> isTemplateComponentFunction) |
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(org.mule.runtime.api.component.Component component)
Adds a new component to the locator.
|
void |
addComponentLocation(org.mule.runtime.api.component.location.ComponentLocation location)
Adds a new
ComponentLocation to the locator. |
List<org.mule.runtime.api.component.Component> |
find(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier) |
Optional<org.mule.runtime.api.component.Component> |
find(org.mule.runtime.api.component.location.Location location) |
List<org.mule.runtime.api.component.location.ComponentLocation> |
findAllLocations() |
void |
removeComponents()
Removes the components from the locator
|
public void addComponent(org.mule.runtime.api.component.Component component)
component - the component to be addedpublic void addComponentLocation(org.mule.runtime.api.component.location.ComponentLocation location)
ComponentLocation to the locator.
This method is used in addition to addComponent(Component) when the parser knows a certain location exists but the
component in that location is not available (i.e.: is lazy)
location - the component to be addedpublic void removeComponents()
public Optional<org.mule.runtime.api.component.Component> find(org.mule.runtime.api.component.location.Location location)
find in interface org.mule.runtime.api.component.location.ConfigurationComponentLocatorpublic List<org.mule.runtime.api.component.Component> find(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier)
find in interface org.mule.runtime.api.component.location.ConfigurationComponentLocatorpublic List<org.mule.runtime.api.component.location.ComponentLocation> findAllLocations()
findAllLocations in interface org.mule.runtime.api.component.location.ConfigurationComponentLocatorCopyright © 2003–2020 MuleSoft, Inc.. All rights reserved.