public interface ThunkCreator
ObjectProvider
. This is used by LazyAdvisor
to build lazy thunk proxies.Modifier and Type | Method and Description |
---|---|
<T> T |
createThunk(Class<T> proxyType,
ObjectCreator objectCreator,
String description)
Creates a Thunk of the given proxy type.
|
<T> T createThunk(Class<T> proxyType, ObjectCreator objectCreator, String description)
T
- type of thunkproxyType
- type of object to create (must be an interface)objectCreator
- provides an instance of the same type on demand (may be invoked multiple times)description
- to be returned from the thunk's toString() method${project.version} - Copyright © 2003-2015 The Apache Software Foundation.