将 Hazelcast JCache 实现连接到 JSR107 注释的最简单方法
Easiest way to connect Hazelcast JCache implementation to JSR107 annotations
Hazelcast is - among other things - an implementation for JCache. The JSR-107 (JCache) specification, along with a programmatic API also specifies annotations, so that caching can be done using CDI. The Hazelcast Blog even gives an example, but also states, that Hazelcast is not be responsible for connecting the annotations to the JCache implementation, and that this should be done by the CDI container. Standard CDI containers don't yet, but this should already be a solved problem. There is even a reference implementation,但它广泛警告不要在生产环境中使用。
我们是否真的坚持使用此参考实现代码或编写我们自己的粘合代码?是否没有真正的、完整的 CDI 解决方案来将注释连接到实现?
JCache didn't make it into JEE7,因此您发现一些带有标签 "do not use" 的部分实现也就不足为奇了。你将不得不等待 JEE8 或发明你自己的东西......
Hazelcast is - among other things - an implementation for JCache. The JSR-107 (JCache) specification, along with a programmatic API also specifies annotations, so that caching can be done using CDI. The Hazelcast Blog even gives an example, but also states, that Hazelcast is not be responsible for connecting the annotations to the JCache implementation, and that this should be done by the CDI container. Standard CDI containers don't yet, but this should already be a solved problem. There is even a reference implementation,但它广泛警告不要在生产环境中使用。
我们是否真的坚持使用此参考实现代码或编写我们自己的粘合代码?是否没有真正的、完整的 CDI 解决方案来将注释连接到实现?
JCache didn't make it into JEE7,因此您发现一些带有标签 "do not use" 的部分实现也就不足为奇了。你将不得不等待 JEE8 或发明你自己的东西......