public class PerThreadServiceCreator extends Object implements ObjectCreator
Constructor and Description |
---|
PerThreadServiceCreator(PerthreadManager perthreadManager,
ObjectCreator delegate) |
Modifier and Type | Method and Description |
---|---|
Object |
createObject()
For each thread, the first call will use the delegate
ObjectCreator to create
an instance, and later calls will reuse the same per-thread instance. |
public PerThreadServiceCreator(PerthreadManager perthreadManager, ObjectCreator delegate)
public Object createObject()
ObjectCreator
to create
an instance, and later calls will reuse the same per-thread instance. The instance is stored in the
PerthreadManager
and will be released at the end of the request.createObject
in interface ObjectCreator
Copyright © 2003-2013 The Apache Software Foundation.