Class ReferenceResolver

  • All Implemented Interfaces:

    public class ReferenceResolver
    extends java.lang.Object
    implements ParameterResolver
    Replaces all %parameter_name% strings in value (where "parameter_name" is found in parameters as key) for corresponding value from parameters. Only single pass is performed, nested references are not resolved.
    Yegor.Yarko Date: 04.06.2008
    • Constructor Detail

      • ReferenceResolver

        public ReferenceResolver()
      • ReferenceResolver

        public ReferenceResolver​(boolean treatInvalidRefsAsResolved)
    • Method Detail

      • resolve

        public ProcessingResult resolve​(@NotNull
                                        java.lang.String key,
                                        java.lang.String value,
                                        ParametersProvider parameters)
        Specified by:
        resolve in interface ParameterResolver
        the result of the resolution. If fullyResolved is false, it means that invocations of the same resolver with different set of parameters available can resolve the value further.