public class BeanModelSourceBuilder extends Object
BeanModelSource
instances without
Tapestry-IoC. Usage of Tapestry-IoC is still recommended.
The setter methods can be used to customize the BeanModelSource to be created and can be
(and usually are) skipped so BeanModelSource beanModelSource = new BeanModelSourceBuilder().build();
is all you need to do.Constructor and Description |
---|
BeanModelSourceBuilder() |
Modifier and Type | Method and Description |
---|---|
BeanModelSource |
build()
Creates and returns a
BeanModelSource instance. |
BeanModelSourceBuilder |
setDataTypeAnalyzer(DataTypeAnalyzer dataTypeAnalyzer)
Sets the
DataTypeAnalyzer to be used. |
BeanModelSourceBuilder |
setObjectLocator(ObjectLocator objectLocator)
Sets the
ObjectLocator to be used. |
BeanModelSourceBuilder |
setPlasticProxyFactory(PlasticProxyFactory plasticProxyFactory)
Sets the
PlasticProxyFactory to be used. |
BeanModelSourceBuilder |
setPropertyAccess(PropertyAccess propertyAccess)
Sets the
PropertyAccess to be used. |
BeanModelSourceBuilder |
setPropertyConduitSource(PropertyConduitSource propertyConduitSource)
Sets the
PropertyConduitSource to be used. |
BeanModelSourceBuilder |
setStringInterner(StringInterner stringInterner)
Sets the
StringInterner to be used. |
BeanModelSourceBuilder |
setTypeCoercer(TypeCoercer typeCoercer)
Sets the
TypeCoercer to be used. |
public BeanModelSourceBuilder()
public BeanModelSource build()
BeanModelSource
instance.public BeanModelSourceBuilder setTypeCoercer(TypeCoercer typeCoercer)
TypeCoercer
to be used.public BeanModelSourceBuilder setPropertyAccess(PropertyAccess propertyAccess)
PropertyAccess
to be used.public BeanModelSourceBuilder setPropertyConduitSource(PropertyConduitSource propertyConduitSource)
PropertyConduitSource
to be used.public BeanModelSourceBuilder setPlasticProxyFactory(PlasticProxyFactory plasticProxyFactory)
PlasticProxyFactory
to be used.public BeanModelSourceBuilder setDataTypeAnalyzer(DataTypeAnalyzer dataTypeAnalyzer)
DataTypeAnalyzer
to be used.public BeanModelSourceBuilder setObjectLocator(ObjectLocator objectLocator)
ObjectLocator
to be used. Actually, the only method of it actually used is
ObjectLocator.autobuild(Class)
, for creating objects of the class described by the
BeanModel
.public BeanModelSourceBuilder setStringInterner(StringInterner stringInterner)
StringInterner
to be used.5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.