@Retention(value=RUNTIME)
public @interface OnCreateTreeProp
Tree props are stored in a map keyed on their individual class object, meaning there will only be one entry for tree props of any given type. PLEASE DO NOT USE COMMON JAVA CLASSES, for example, String, Integer etc; creates a wrapper class instead.
Example usage:
@LayoutSpec
public class MySpec {
@OnCreateTreeProp
SomeTreePropClass onCreateSomeTreeProp(
ComponentsContext c,
@Prop SomeProp prop) {
return new SomeTreePropClass(prop.getSomeProperty());
}
}