net.sourceforge.acelogger.interpolator
Interface TextInterpolator

All Known Implementing Classes:
JavaTextFormatInterpolator, JavaUtilFormatterInterpolator, MessageBundleInterpolator

public interface TextInterpolator

Abstracts interpolation of parameters in a message.

Since:
1.0.0
Version:
1.0.0
Author:
Zardi (https://sourceforge.net/users/daniel_zardi)

Method Summary
 String interpolate(String pattern, Object... params)
          Interpolates parameters within a string, this should include formatting, padding and some basic conditionals.
 

Method Detail

interpolate

String interpolate(String pattern,
                   Object... params)
Interpolates parameters within a string, this should include formatting, padding and some basic conditionals. The provided features depend directly of the underlying interpolator used.

Parameters:
pattern - The string which should be interpolated.
params - The parameters used to interpolate the message.
Returns:
A string containing the pattern interpolated with the supplied parameters.
Since:
1.0.0


Copyright © 2007-2010 The AceLogger Team. All Rights Reserved.