Package com.tangosol.util
Class BuilderHelper
java.lang.Object
com.tangosol.util.BuilderHelper
Provides a collection of helper methods for working with 
Builders.- Author:
 - bo 2012.10.26
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic <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(). 
- 
Constructor Details
- 
BuilderHelper
public BuilderHelper() 
 - 
 - 
Method Details
- 
using
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 
 
 -