Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5.internal.services
Interface StringInterner

All Known Implementing Classes:
  StringInternerImpl

    public interface StringInterner

Creates "interned" strings that are unique for the same content. This is used for common description strings, particularly those used by `Binding` instances. The internal cache of interned strings id cleared whenever the `ComponentClasses` `InvalidationEventHub` is invalidated (i.e., when component class files change).

Since:
  5.1.0.0

Method Summary
`java.lang.String` | `format(java.lang.String format, java.lang.Object... arguments)` Formats a string (using `String.format(String, Object[])`) and returns the interned result.
`java.lang.String` | `intern(java.lang.String string)` Interns a string.

Method Detail

### intern

    java.lang.String intern(java.lang.String string)

  Interns a string.

  Parameters:
    `string` - the string to intern
  Returns:
    the input string, or another string instance with the same content

### format

    java.lang.String format(java.lang.String format,
                            java.lang.Object... arguments)

  Formats a string (using `String.format(String, Object[])`) and returns the interned result.

  Parameters:
    `format` - string format
    `arguments` - used inside the format
  Returns:
    formatted and interned string

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.