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 creatingBeanModelSource
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 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 BeanModelSource
build()
Creates and returns aBeanModelSource
instance.BeanModelSourceBuilder
setDataTypeAnalyzer(DataTypeAnalyzer dataTypeAnalyzer)
Sets theDataTypeAnalyzer
to be used.BeanModelSourceBuilder
setObjectLocator(ObjectLocator objectLocator)
Sets theObjectLocator
to be used.BeanModelSourceBuilder
setPlasticProxyFactory(PlasticProxyFactory plasticProxyFactory)
Sets thePlasticProxyFactory
to be used.BeanModelSourceBuilder
setPropertyAccess(PropertyAccess propertyAccess)
Sets thePropertyAccess
to be used.BeanModelSourceBuilder
setPropertyConduitSource(PropertyConduitSource propertyConduitSource)
Sets thePropertyConduitSource
to be used.BeanModelSourceBuilder
setStringInterner(StringInterner stringInterner)
Sets theStringInterner
to be used.BeanModelSourceBuilder
setTypeCoercer(TypeCoercer typeCoercer)
Sets theTypeCoercer
to be used.
-
-
-
Constructor Detail
-
BeanModelSourceBuilder
public BeanModelSourceBuilder()
-
-
Method Detail
-
build
public BeanModelSource build()
Creates and returns aBeanModelSource
instance.
-
setTypeCoercer
public BeanModelSourceBuilder setTypeCoercer(TypeCoercer typeCoercer)
Sets theTypeCoercer
to be used.
-
setPropertyAccess
public BeanModelSourceBuilder setPropertyAccess(PropertyAccess propertyAccess)
Sets thePropertyAccess
to be used.
-
setPropertyConduitSource
public BeanModelSourceBuilder setPropertyConduitSource(PropertyConduitSource propertyConduitSource)
Sets thePropertyConduitSource
to be used.
-
setPlasticProxyFactory
public BeanModelSourceBuilder setPlasticProxyFactory(PlasticProxyFactory plasticProxyFactory)
Sets thePlasticProxyFactory
to be used.
-
setDataTypeAnalyzer
public BeanModelSourceBuilder setDataTypeAnalyzer(DataTypeAnalyzer dataTypeAnalyzer)
Sets theDataTypeAnalyzer
to be used.
-
setObjectLocator
public BeanModelSourceBuilder setObjectLocator(ObjectLocator objectLocator)
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
public BeanModelSourceBuilder setStringInterner(StringInterner stringInterner)
Sets theStringInterner
to be used.
-
-