org.jboss.seam.core
Class Interpolator

java.lang.Object
  extended by org.jboss.seam.core.Interpolator

@BypassInterceptors
@Scope(value=STATELESS)
@Name(value="org.jboss.seam.core.interpolator")
@Install(precedence=0)
public class Interpolator
extends Object

Interpolates EL expressions in Strings

Author:
Gavin King

Constructor Summary
Interpolator()
           
 
Method Summary
static Interpolator instance()
           
 String interpolate(String string, Object... params)
          Replace all EL expressions in the form #{...} with their evaluated values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interpolator

public Interpolator()
Method Detail

instance

public static Interpolator instance()

interpolate

public String interpolate(String string,
                          Object... params)
Replace all EL expressions in the form #{...} with their evaluated values.

Parameters:
string - a template
Returns:
the interpolated string