@Documented @Retention(value=RUNTIME) @Target(value=TYPE) public static @interface AutoBeanFactory.Category
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(); }
public abstract Class<?>[] value
Copyright © 2016. All rights reserved.