Class StringInternerImpl
- java.lang.Object
-
- org.apache.tapestry5.commons.internal.services.StringInternerImpl
-
- All Implemented Interfaces:
StringInterner
public class StringInternerImpl extends Object implements StringInterner
-
-
Constructor Summary
Constructors Constructor Description StringInternerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringformat(String format, Object... arguments)Formats a string (usingString.format(String, Object[])) and returns the interned result.Stringintern(String string)Interns a string.voidsetupInvalidation(InvalidationEventHub hub)
-
-
-
Constructor Detail
-
StringInternerImpl
public StringInternerImpl()
-
-
Method Detail
-
setupInvalidation
@PostInjection public void setupInvalidation(@ComponentClasses InvalidationEventHub hub)
-
intern
public String intern(String string)
Description copied from interface:StringInternerInterns a string.- Specified by:
internin interfaceStringInterner- Parameters:
string- the string to intern- Returns:
- the input string, or another string instance with the same content
-
format
public String format(String format, Object... arguments)
Description copied from interface:StringInternerFormats a string (usingString.format(String, Object[])) and returns the interned result.- Specified by:
formatin interfaceStringInterner- Parameters:
format- string formatarguments- used inside the format- Returns:
- formatted and interned string
-
-