Skip to content

Instantly share code, notes, and snippets.

View pavelhoral's full-sized avatar

Pavel Horal pavelhoral

View GitHub Profile
@pavelhoral
pavelhoral / README.md
Last active December 1, 2020 17:39
Wren:IDM OSGi 7 Upgrade

This gist contains differences in bundle metadata after upgrading OSGi and Felix

Differences were created by simple script that compares MANIFEST.MF entries and SCR metadata in OSGI-INF.

General differences

  • ✔ JRE version was upgraded to 1.8.
  • ❌ Link to Creative Commons license disappeared from Bundle-License manifest attribute. This was not an intentional change, but it probably doesn't matter as CC-BY-NC was for docbook documentation.
  • ✔ All Felix SCR Annotations were replaced with standard OSGi DS annotations.
  • ✔ Previous implementation was using factory=true with suppressMetatypeWarning properties to generate empty OCD. Such construct is not possible with DS and I am not sure what purpose it had. Those properties were removed.
@pavelhoral
pavelhoral / AbstractTicketRegistryTests.java
Last active June 9, 2017 11:58
Making TicketRegistryTests parametrized?
public abstract class AbstractTicketRegistryTests {
// THIS IS NEW as the @RunWith is changed
@ClassRule
public static final SpringClassRule SPRING_CLASS_RULE = new SpringClassRule();
@Rule
public final SpringMethodRule springMethodRule = new SpringMethodRule();
private final boolean useEncryption;
private TicketRegistry ticketRegistry;