AutoBeanFactory.Category (GWT Javadoc)

Overview | Package | Class | Use | Deprecated | Help
| GWT 2.7.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## com.google.web.bindery.autobean.shared
Annotation Type AutoBeanFactory.Category

    @Documented
    @Retention(value=RUNTIME)
    @Target(value=TYPE)
    public static @interface AutoBeanFactory.Category

Allows non-property methods on simple bean implementations when applied. For any given method, the specified classes will be searched for a public, static method whose method signature is exactly equal to the declared method's signature, save for the addition of a new initial paramater that must accept `AutoBean<T>`.

     interface HasMethod {
       void doSomething(int a, double b);
     }

would be paired with a category implemenation such as

     class HasMethodCategory {
       public static void doSomething(AutoBean<HasMethod> bean, int a, double b) {
       }
     }

and registered with

     @Category(HasMethodCategory.class)
     interface MyBeanFactory extends AutoBeanFactory {
       AutoBean<HasMethod> hasMethod();
     }

Required Element Summary
`java.lang.Class<?>[]` | `value`

Element Detail

### value

    public abstract java.lang.Class<?>[] value

Overview | Package | Class | Use | Deprecated | Help
| GWT 2.7.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT