Annotation Type AutoBeanFactory.Category
- Enclosing interface:
AutoBeanFactory
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 parameter 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
-
Element Details
-
value
Class<?>[] value
-