私は次のインターフェースを持っています:
public interface beanExample {
public BigDecimal norm(BigDecimal dec);
}
次に、そのカテゴリを作成します。
public class beanExampleCategory {
public static BigDecimal norm(BigDecimal dec) {
return dec != null ? dec : BigDecimal.ZERO;
}
}
そして私の工場は次のようになります:
@Category(beanExampleCategory.class)
public interface myFactory extends AutoBeanFactory {
AutoBean<beanExample> mybean();
}
しかし、コンパイルすると、これらのエラーが発生しました:
[ERROR] The beanExample parameterization is not simple
and the following methods did not have static implementations:
[ERROR] public abstract java.math.BigDecimal norm(java.math.BigDecimal dec)
[ERROR] Unable to complete due to previous errors
いくつかの方法で解決しようとしていますが、解決方法がわかりません!
AutoBean で params を使用してメソッドを実装するにはどうすればよいですか?