Package org.apache.tapestry5.beanmodel
Class BeanModelSourceBuilder
java.lang.Object
org.apache.tapestry5.beanmodel.BeanModelSourceBuilder
Utility class for creating
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates and returns aBeanModelSource
instance.setDataTypeAnalyzer
(DataTypeAnalyzer dataTypeAnalyzer) Sets theDataTypeAnalyzer
to be used.setObjectLocator
(ObjectLocator objectLocator) Sets theObjectLocator
to be used.setPlasticProxyFactory
(PlasticProxyFactory plasticProxyFactory) Sets thePlasticProxyFactory
to be used.setPropertyAccess
(PropertyAccess propertyAccess) Sets thePropertyAccess
to be used.setPropertyConduitSource
(PropertyConduitSource propertyConduitSource) Sets thePropertyConduitSource
to be used.setStringInterner
(StringInterner stringInterner) Sets theStringInterner
to be used.setTypeCoercer
(TypeCoercer typeCoercer) Sets theTypeCoercer
to be used.
-
Constructor Details
-
BeanModelSourceBuilder
public BeanModelSourceBuilder()
-
-
Method Details
-
build
Creates and returns aBeanModelSource
instance. -
setTypeCoercer
Sets theTypeCoercer
to be used. -
setPropertyAccess
Sets thePropertyAccess
to be used. -
setPropertyConduitSource
Sets thePropertyConduitSource
to be used. -
setPlasticProxyFactory
Sets thePlasticProxyFactory
to be used. -
setDataTypeAnalyzer
Sets theDataTypeAnalyzer
to be used. -
setObjectLocator
Sets theObjectLocator
to be used. Actually, the only method of it actually used isObjectLocator.autobuild(Class)
, for creating objects of the class described by theBeanModel
. -
setStringInterner
Sets theStringInterner
to be used.
-