Constructor and Description |
---|
BuilderHelper() |
Modifier and Type | Method and Description |
---|---|
static <T> Builder<T> |
using(ParameterizedBuilder<T> bldr,
com.tangosol.config.expression.ParameterResolver resolver,
ClassLoader loader,
ParameterList list)
Adapts a
ParameterizedBuilder into a Builder . |
static <T> Builder<T> |
using(T t)
Creates a
Builder that returns a specified object, for each
invocation of Builder.realize() . |
public static <T> Builder<T> using(T t)
Builder
that returns a specified object, for each
invocation of Builder.realize()
.T
- the type of object to realizet
- the instance to returnBuilder
implementation that returns the specified
instance when Builder.realize()
is invokedpublic static <T> Builder<T> using(ParameterizedBuilder<T> bldr, com.tangosol.config.expression.ParameterResolver resolver, ClassLoader loader, ParameterList list)
ParameterizedBuilder
into a Builder
.T
- the type of object to realizebldr
- the ParameterizedBuilder
resolver
- the ParameterResolver
for the builderloader
- the ClassLoader
list
- (optional) the ParameterList
Builder
that will realize an instance using the
specified ParameterizedBuilder