com.google.gwt.autobean.shared.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(); }
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
java.lang.annotation.Annotation
|