public class StringInternerImpl extends Object implements StringInterner
Constructor and Description |
---|
StringInternerImpl() |
Modifier and Type | Method and Description |
---|---|
String |
format(String format,
Object... arguments)
Formats a string (using
String.format(String, Object[]) ) and returns the interned result. |
String |
intern(String string)
Interns a string.
|
void |
setupInvalidation(InvalidationEventHub hub) |
public StringInternerImpl()
@PostConstruct public void setupInvalidation(@ComponentClasses InvalidationEventHub hub)
public String intern(String string)
StringInterner
intern
in interface StringInterner
string
- the string to internpublic String format(String format, Object... arguments)
StringInterner
String.format(String, Object[])
) and returns the interned result.format
in interface StringInterner
format
- string formatarguments
- used inside the format${project.version} - Copyright © 2003-2015 The Apache Software Foundation.