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