Class DocviewEscapingInterpolatorCustomizerFactory
- java.lang.Object
-
- org.codehaus.plexus.interpolation.AbstractValueSource
-
- org.apache.jackrabbit.filevault.maven.packaging.impl.extensions.DocviewEscapingInterpolatorCustomizerFactory
-
- All Implemented Interfaces:
InterpolatorCustomizerFactory
,org.codehaus.plexus.interpolation.InterpolationPostProcessor
,org.codehaus.plexus.interpolation.ValueSource
@Named public class DocviewEscapingInterpolatorCustomizerFactory extends org.codehaus.plexus.interpolation.AbstractValueSource implements InterpolatorCustomizerFactory, org.codehaus.plexus.interpolation.InterpolationPostProcessor
Enhances the regular filtering with handlingvltdocviewattributeescape.
which will automatically escape the interpolated value of the suffix according to FileVault DocView Escaping Rules for using it inside XML attribute values.
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXPRESSION_PREFIX
-
Constructor Summary
Constructors Constructor Description DocviewEscapingInterpolatorCustomizerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Consumer<org.codehaus.plexus.interpolation.Interpolator>
create(org.apache.maven.execution.MavenSession mavenSession, org.apache.maven.project.MavenProject mavenProject)
Creates a new customizer for anInterpolator
based on the given Maven context.Object
execute(String expression, Object value)
Object
getValue(String expression)
-
-
-
Field Detail
-
EXPRESSION_PREFIX
public static final String EXPRESSION_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getValue
public Object getValue(String expression)
- Specified by:
getValue
in interfaceorg.codehaus.plexus.interpolation.ValueSource
-
execute
public Object execute(String expression, Object value)
- Specified by:
execute
in interfaceorg.codehaus.plexus.interpolation.InterpolationPostProcessor
-
create
public Consumer<org.codehaus.plexus.interpolation.Interpolator> create(org.apache.maven.execution.MavenSession mavenSession, org.apache.maven.project.MavenProject mavenProject)
Description copied from interface:InterpolatorCustomizerFactory
Creates a new customizer for anInterpolator
based on the given Maven context. The functional interface being returned is called for each new interpolator used for filtering.- Specified by:
create
in interfaceInterpolatorCustomizerFactory
- Parameters:
mavenSession
- the Maven session in which the Interpolator is usedmavenProject
- the Maven project in which the Interpolator is used- Returns:
- the customizer functional interface (which may register
InterpolationPostProcessor
and orValueSource
on the given interpolator)
-
-