Class 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 handling vltdocviewattributeescape. which will automatically escape the interpolated value of the suffix according to FileVault DocView Escaping Rules for using it inside XML attribute values.
    • Constructor Detail

      • DocviewEscapingInterpolatorCustomizerFactory

        public DocviewEscapingInterpolatorCustomizerFactory()
    • Method Detail

      • getValue

        public Object getValue​(String expression)
        Specified by:
        getValue in interface org.codehaus.plexus.interpolation.ValueSource
      • execute

        public Object execute​(String expression,
                              Object value)
        Specified by:
        execute in interface org.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 an Interpolator based on the given Maven context. The functional interface being returned is called for each new interpolator used for filtering.
        Specified by:
        create in interface InterpolatorCustomizerFactory
        Parameters:
        mavenSession - the Maven session in which the Interpolator is used
        mavenProject - the Maven project in which the Interpolator is used
        Returns:
        the customizer functional interface (which may register InterpolationPostProcessor and or ValueSource on the given interpolator)