Package org.apache.tapestry5.beanmodel
Class BeanModelSourceBuilder
- java.lang.Object
-
- org.apache.tapestry5.beanmodel.BeanModelSourceBuilder
-
public class BeanModelSourceBuilder extends java.lang.Object
Utility class for creatingBeanModelSourceinstances 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 soBeanModelSource beanModelSource = new BeanModelSourceBuilder().build();is all you need to do.
-
-
Constructor Summary
Constructors Constructor Description BeanModelSourceBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanModelSourcebuild()Creates and returns aBeanModelSourceinstance.BeanModelSourceBuildersetDataTypeAnalyzer(DataTypeAnalyzer dataTypeAnalyzer)Sets theDataTypeAnalyzerto be used.BeanModelSourceBuildersetObjectLocator(ObjectLocator objectLocator)Sets theObjectLocatorto be used.BeanModelSourceBuildersetPlasticProxyFactory(PlasticProxyFactory plasticProxyFactory)Sets thePlasticProxyFactoryto be used.BeanModelSourceBuildersetPropertyAccess(PropertyAccess propertyAccess)Sets thePropertyAccessto be used.BeanModelSourceBuildersetPropertyConduitSource(PropertyConduitSource propertyConduitSource)Sets thePropertyConduitSourceto be used.BeanModelSourceBuildersetStringInterner(StringInterner stringInterner)Sets theStringInternerto be used.BeanModelSourceBuildersetTypeCoercer(TypeCoercer typeCoercer)Sets theTypeCoercerto be used.
-
-
-
Constructor Detail
-
BeanModelSourceBuilder
public BeanModelSourceBuilder()
-
-
Method Detail
-
build
public BeanModelSource build()
Creates and returns aBeanModelSourceinstance.
-
setTypeCoercer
public BeanModelSourceBuilder setTypeCoercer(TypeCoercer typeCoercer)
Sets theTypeCoercerto be used.
-
setPropertyAccess
public BeanModelSourceBuilder setPropertyAccess(PropertyAccess propertyAccess)
Sets thePropertyAccessto be used.
-
setPropertyConduitSource
public BeanModelSourceBuilder setPropertyConduitSource(PropertyConduitSource propertyConduitSource)
Sets thePropertyConduitSourceto be used.
-
setPlasticProxyFactory
public BeanModelSourceBuilder setPlasticProxyFactory(PlasticProxyFactory plasticProxyFactory)
Sets thePlasticProxyFactoryto be used.
-
setDataTypeAnalyzer
public BeanModelSourceBuilder setDataTypeAnalyzer(DataTypeAnalyzer dataTypeAnalyzer)
Sets theDataTypeAnalyzerto be used.
-
setObjectLocator
public BeanModelSourceBuilder setObjectLocator(ObjectLocator objectLocator)
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
public BeanModelSourceBuilder setStringInterner(StringInterner stringInterner)
Sets theStringInternerto be used.
-
-