@Documented @Retention(value=RUNTIME) @Target(value=TYPE) @Experimental(value=SCHEMAS) public @interface DefaultSchema
DefaultSchema
annotation specifies a SchemaProvider
class to handle obtaining
a schema and row for the specified class.
For example, if your class is JavaBean, the JavaBeanSchema provider class knows how to vend schemas for this class. You can annotate it as follows:
@DefaultSchema(JavaBeanSchema.class)
class MyClass {
public String getFoo();
void setFoo(String foo);
....
}
Modifier and Type | Required Element and Description |
---|---|
java.lang.Class<? extends SchemaProvider> |
value |
@CheckForNull public abstract java.lang.Class<? extends SchemaProvider> value