How to supply value to an annotation from a Constant java

后端 未结 6 638
日久生厌
日久生厌 2020-11-22 15:01

I am thinking this may not be possible in Java because annotation and its parameters are resolved at compile time. I have an interface as follows,

public int         


        
6条回答
  •  旧巷少年郎
    2020-11-22 15:46

    I am thinking this may not be possible in Java because annotation and its parameters are resolved at compile time.

    With Seam 2 http://seamframework.org/ you were able to resolve annotation parameters at runtime, with expression language inside double quotes.

    In Seam 3 http://seamframework.org/Seam3/Solder, this feature is the module Seam Solder

提交回复
热议问题