Class StringInterpolationProviderImpl
java.lang.Object
org.apache.sling.resourceresolver.impl.mapping.StringInterpolationProviderImpl
- All Implemented Interfaces:
StringInterpolationProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
activate
(org.osgi.framework.BundleContext bundleContext, StringInterpolationProviderConfiguration config) Activates this component (called by SCR before)protected void
deactivate
(org.osgi.framework.BundleContext bundleContext) Deactivates this component (called by SCR to take out of service)protected void
modified
(org.osgi.framework.BundleContext bundleContext, StringInterpolationProviderConfiguration config) Modifies this component (called by SCR to update this component)substitute
(String text) This is the method that is used by the Map Entries service to substitute values with the proper format
-
Constructor Details
-
StringInterpolationProviderImpl
public StringInterpolationProviderImpl()
-
-
Method Details
-
activate
protected void activate(org.osgi.framework.BundleContext bundleContext, StringInterpolationProviderConfiguration config) Activates this component (called by SCR before)- Parameters:
bundleContext
- the bundleContextconfig
- the configuration
-
modified
protected void modified(org.osgi.framework.BundleContext bundleContext, StringInterpolationProviderConfiguration config) Modifies this component (called by SCR to update this component)- Parameters:
bundleContext
- the bundleContextconfig
- the configuration
-
deactivate
protected void deactivate(org.osgi.framework.BundleContext bundleContext) Deactivates this component (called by SCR to take out of service)- Parameters:
bundleContext
- the bundleContext
-
substitute
This is the method that is used by the Map Entries service to substitute values with the proper format- Specified by:
substitute
in interfaceStringInterpolationProvider
- Parameters:
text
- Text to be converted- Returns:
- Should be either the substituted text or the original given text
-