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 aBeanModelSourceinstance.setDataTypeAnalyzer(DataTypeAnalyzer dataTypeAnalyzer) Sets theDataTypeAnalyzerto be used.setObjectLocator(ObjectLocator objectLocator) Sets theObjectLocatorto be used.setPlasticProxyFactory(PlasticProxyFactory plasticProxyFactory) Sets thePlasticProxyFactoryto be used.setPropertyAccess(PropertyAccess propertyAccess) Sets thePropertyAccessto be used.setPropertyConduitSource(PropertyConduitSource propertyConduitSource) Sets thePropertyConduitSourceto be used.setStringInterner(StringInterner stringInterner) Sets theStringInternerto be used.setTypeCoercer(TypeCoercer typeCoercer) Sets theTypeCoercerto be used.
-
Constructor Details
-
BeanModelSourceBuilder
public BeanModelSourceBuilder()
-
-
Method Details
-
build
Creates and returns aBeanModelSourceinstance. -
setTypeCoercer
Sets theTypeCoercerto be used. -
setPropertyAccess
Sets thePropertyAccessto be used. -
setPropertyConduitSource
Sets thePropertyConduitSourceto be used. -
setPlasticProxyFactory
Sets thePlasticProxyFactoryto be used. -
setDataTypeAnalyzer
Sets theDataTypeAnalyzerto be used. -
setObjectLocator
Sets theObjectLocatorto be used. Actually, the only method of it actually used isObjectLocator.autobuild(Class), for creating objects of the class described by theBeanModel. -
setStringInterner
Sets theStringInternerto be used.
-