Eclipselink是否在Apache Felix下使用(动态)字节码编织? [英] Does Eclipselink use (dynamic) bytecode weaving under Apache Felix?

查看:100
本文介绍了Eclipselink是否在Apache Felix下使用(动态)字节码编织?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Apache Felix中来自Springsource(版本1.1.0)的Eclipselink捆绑软件.我的(带有JPA注释的)实体类得到了持久存储等,因此基本机制可以正常工作.但是,我怀疑字节码编织是否完成.

I'm using the Eclipselink bundles from Springsource (version 1.1.0) inside Apache Felix. My (JPA annotated) entity classes get persisted etc., so the basic mechanism works. However, I'm doubting that bytecode weaving is done.

如何验证Eclipselink是否在类上使用编织?

How can I verify if Eclipselink uses weaving on my classes?

在Felix中运行时通常支持编织吗?我没有更改配置或启动脚本的任何内容,我必须这样做吗?

Is weaving generally supported when running in Felix? I didn't change anything about my configuration or startup scripts, do I have to?

推荐答案

请参见 Eclipse文档-页面底部;

import org.eclipse.persistence.internal.helper.Helper;
import org.eclipse.persistence.internal.weaving.PersistenceWeaved;
...
if (Helper.classImplementsInterface(MyEntity.class, PersistenceWeaved.class)) {
   // MyEntityEntity successfully woven!
   ...

这篇关于Eclipselink是否在Apache Felix下使用(动态)字节码编织?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆