Class ThreadSafePropertyEditor
java.lang.Object
com.thoughtworks.xstream.core.util.ThreadSafePropertyEditor
Wrapper around
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.
- Since:
- 1.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
editorType
-
pool
-
-
Constructor Details
-
ThreadSafePropertyEditor
-
-
Method Details
-
getAsText
-
setAsText
-
fetchFromPool
-