我正在尝试借助 Equinox jars(org.aspectj.runtime、org.aspectj.weaver、org.eclipse.equinox.weaving.aspectj on bundles 文件夹和 org.eclipse)在 OSGI 上使用 aspectJ Load Time Weaving(无 Spring) .equinox.weaving.hook 位于与 org.eclipse.osgi 物理位置相同的文件夹)根据:https ://wiki.eclipse.org/Equinox_Weaving_QuickStart
这是捆绑包的加载顺序:
[org.eclipse.equinox.weaving.hook::1 -> INSTALLED]
[org.aspectj.runtime::11 -> INSTALLED]
[org.aspectj.weaver::12 -> INSTALLED]
[org.eclipse.equinox.weaving.aspectj::13 -> INSTALLED]
[com.common-calculations_2.11::19 -> INSTALLED] //here I used aspects
[com.instrumentation_2.11::48 -> INSTALLED] //here I defined the aspects
Done installing bundles
Starting bundles...
[org.eclipse.equinox.weaving.aspectj::13 -> ACTIVE]
[org.aspectj.runtime::11 -> ACTIVE]
[org.eclipse.osgi::0 -> ACTIVE]
FRAGMENT Bundle - skip starting: org.eclipse.equinox.weaving.hook
FRAGMENT Bundle - skip starting: org.aspectj.runtime
[org.aspectj.weaver::12 -> ACTIVE]
FRAGMENT Bundle - skip starting: org.eclipse.equinox.weaving.aspectj
Bundle started: [com.common-calculations_2.11::19 -> ACTIVE]
Bundle started: [com.instrumentation_2.11::48 -> ACTIVE]
我想知道我应该如何启动钩罐?我会很感激任何帮助... ps有人通过将包“org.eclipse.osgi”和片段“org.eclipse.equinox.weaving.hook”作为“带有链接内容的二进制项目”导入他的工作区来解决他的问题,但我不太确定该怎么做: https ://www.eclipse.org/forums/index.php?t=msg&th=440862
感谢您的回复