com.dragome.forms.bindings.client.bean.NestedBean Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dragome-form-bindings Show documentation
Show all versions of dragome-form-bindings Show documentation
Dragome SDK module: form bindings
package com.dragome.forms.bindings.client.bean;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation can be used to mark a bean property as being a nested bean. The annotation must
* be placed on the getter of the parent bean.
*
* The following will expose the address property as a nested bean.
*
* public class Person {
* @NestedBean
* public Address getAddress() {return address;}
* }
*
* As an alternative you can also the {@link com.pietschy.gwt.pectin.client.bean.NestedTypes}
* annotation on you {@link com.pietschy.gwt.pectin.client.bean.BeanModelProvider}.
*
* @see com.pietschy.gwt.pectin.client.bean.NestedTypes
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface NestedBean
{
}