PropertyEditor that can be called by multiple threads concurrently.
A PropertyEditor is not thread safe. To make best use of resources, the PropertyEditor provides a dynamically sizing pool of instances, each of which will only be called by a single thread at a time.
The pool has a maximum capacity, to limit overhead. If all instances in the pool are in use and another is required, it shall block until one becomes available.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private PropertyEditor | |
| public String | |
| public Object |
| editorType | back to summary |
|---|---|
| private final Class<T> editorType | |
| pool | back to summary |
|---|---|
| private final Pool pool | |
| ThreadSafePropertyEditor | back to summary |
|---|---|
| public ThreadSafePropertyEditor(Class<T> type, int initialPoolSize, int maxPoolSize) | |
| fetchFromPool | back to summary |
|---|---|
| private PropertyEditor fetchFromPool() | |
| getAsText | back to summary |
|---|---|
| public String getAsText(Object object) | |
| setAsText | back to summary |
|---|---|
| public Object setAsText(String str) | |