THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
public class MyPage
{
@Inject
private BeanModelSource beanModelSource;
@Inject
private ComponentResources resources;
@Property(write=false)
@Retain
private BeanModel model;
@Property
private MyBean bean;
{
model = beanModelSource.create(MyBean.class, true, resources);
// Make other changes to model here.
}
}
|
...
DataTypeAnalyzer is a chain of command that can make match properties to data types based on property type or annotations on the property. In general, DefaultDataTypeAnalyzer is used, as that only needs to consider property type. DefaultDataTypeAnalyzer matches property types to data types, based on a search up the inheritance path.
...