edu.internet2.middleware.grouperClientExt.com.thoughtworks.xstream.core.util
Class ThreadSafePropertyEditor

java.lang.Object
  extended by edu.internet2.middleware.grouperClientExt.com.thoughtworks.xstream.core.util.ThreadSafePropertyEditor

public class ThreadSafePropertyEditor
extends Object

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
Author:
Jörg Schaible

Constructor Summary
ThreadSafePropertyEditor(Class type, int initialPoolSize, int maxPoolSize)
           
 
Method Summary
 String getAsText(Object object)
           
 Object setAsText(String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadSafePropertyEditor

public ThreadSafePropertyEditor(Class type,
                                int initialPoolSize,
                                int maxPoolSize)
Method Detail

getAsText

public String getAsText(Object object)

setAsText

public Object setAsText(String str)


Copyright © 2010 Internet2. All Rights Reserved.