@Test public void testAddDecorations() { final Map<String, Object> serviceProps = new HashMap<>(); serviceProps.put(Constants.OBJECTCLASS, new String[] {"org.acme.foo.Bar"}); serviceProps.put("test.prop", "xyz"); Map<String, Object> expected = new HashMap<>(); expected.put("test.too", "ahaha"); assertDecorate(serviceProps, expected, RES_SD); }
void addDecorations(Bundle bundle) { for (ServiceDecorationType decoration : getDecorationElements(bundle)) { for (MatchType match : decoration.getMatch()) { decorations.add(getRule(bundle, match)); } } }
ServiceDecoratorImpl implements ServiceDecorator { void addDecorations(Bundle bundle) { for (ServiceDecorationType decoration : getDecorationElements(bundle)) { for (MatchType match : decoration.getMatch()) { decorations.add(getRule(bundle, match)); } } } }
ServiceDecoratorImpl implements ServiceDecorator { void addDecorations(Bundle bundle) { for (ServiceDecorationType decoration : getDecorationElements(bundle)) { for (MatchType match : decoration.getMatch()) { decorations.add(getRule(bundle, match)); } } } ServiceDecoratorImpl(); }
ServiceDecoratorImpl implements ServiceDecorator { void addDecorations(Bundle bundle) { for (ServiceDecorationType decoration : getDecorationElements(bundle)) { for (MatchType match : decoration.getMatch()) { decorations.add(getRule(bundle, match)); } } } ServiceDecoratorImpl(); @Override void decorate(ServiceReference<?> sref, Map<String, Object> target); }
ServiceDecoratorImpl implements ServiceDecorator { void addDecorations(Bundle bundle) { for (ServiceDecorationType decoration : getDecorationElements(bundle)) { for (MatchType match : decoration.getMatch()) { decorations.add(getRule(bundle, match)); } } } ServiceDecoratorImpl(); @Override void decorate(ServiceReference<?> sref, Map<String, Object> target);  }