Package com.tangosol.util
Class BuilderHelper
- java.lang.Object
-
- com.tangosol.util.BuilderHelper
-
-
Constructor Summary
Constructors Constructor Description BuilderHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Builder<T>using(ParameterizedBuilder<T> bldr, ParameterResolver resolver, ClassLoader loader, ParameterList list)Adapts aParameterizedBuilderinto aBuilder.static <T> Builder<T>using(T t)Creates aBuilderthat returns a specified object, for each invocation ofBuilder.realize().
-
-
-
Method Detail
-
using
public static <T> Builder<T> using(T t)
Creates aBuilderthat returns a specified object, for each invocation ofBuilder.realize().- Type Parameters:
T- the type of object to realize- Parameters:
t- the instance to return- Returns:
- a
Builderimplementation that returns the specified instance whenBuilder.realize()is invoked
-
using
public static <T> Builder<T> using(ParameterizedBuilder<T> bldr, ParameterResolver resolver, ClassLoader loader, ParameterList list)
Adapts aParameterizedBuilderinto aBuilder.- Type Parameters:
T- the type of object to realize- Parameters:
bldr- theParameterizedBuilderresolver- theParameterResolverfor the builderloader- theClassLoaderlist- (optional) theParameterList- Returns:
- a
Builderthat will realize an instance using the specifiedParameterizedBuilder
-
-