test_class.declarator: EMPTY = new HashMap<>()
test_class.modifier: private static final
test_class.original_string: private static final Map<String, Object> EMPTY = new HashMap<>();
test_class.type: Map<String, Object>
test_class.var_name: EMPTY
test_class.declarator: RES_SD = getResource("/test-resources/sd.xml")
test_class.modifier: private static final
test_class.original_string: private static final URL RES_SD = getResource("/test-resources/sd.xml");
test_class.type: URL
test_class.var_name: RES_SD
test_class.declarator: RES_SD1 = getResource("/test-resources/sd1.xml")
test_class.modifier: private static final
test_class.original_string: private static final URL RES_SD1 = getResource("/test-resources/sd1.xml");
test_class.type: URL
test_class.var_name: RES_SD1
test_class.declarator: RES_SD2 = getResource("/test-resources/sd2.xml")
test_class.modifier: private static final
test_class.original_string: private static final URL RES_SD2 = getResource("/test-resources/sd2.xml");
test_class.type: URL
test_class.var_name: RES_SD2
test_class.declarator: RES_SD0 = getResource("/test-resources/sd0.xml")
test_class.modifier: private static final
test_class.original_string: private static final URL RES_SD0 = getResource("/test-resources/sd0.xml");
test_class.type: URL
test_class.var_name: RES_SD0
test_class.declarator: RES_SD_1 = getResource("/test-resources/sd-1.xml")
test_class.modifier: private static final
test_class.original_string: private static final URL RES_SD_1 = getResource("/test-resources/sd-1.xml");
test_class.type: URL
test_class.var_name: RES_SD_1
test_class.file: decorator/src/test/java/org/apache/cxf/dosgi/dsw/decorator/ServiceDecoratorImplTest.java
test_class.identifier: ServiceDecoratorImplTest
test_case.body: @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);
      }
test_case.class_method_signature: ServiceDecoratorImplTest.testAddDecorations()
test_case.full_signature: @Test public void testAddDecorations()
test_case.identifier: testAddDecorations
test_case.invocations: put put put assertDecorate
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAddDecorations()
focal_class.declarator: LOG = LoggerFactory.getLogger(ServiceDecoratorImpl.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(ServiceDecoratorImpl.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: decorations = new CopyOnWriteArrayList<>()
focal_class.modifier: final
focal_class.original_string: final List<Rule> decorations = new CopyOnWriteArrayList<>();
focal_class.type: List<Rule>
focal_class.var_name: decorations
focal_class.declarator: parser
focal_class.modifier: private
focal_class.original_string: private DecorationParser parser;
focal_class.type: DecorationParser
focal_class.var_name: parser
focal_class.file: decorator/src/main/java/org/apache/cxf/dosgi/dsw/decorator/ServiceDecoratorImpl.java
focal_class.identifier: ServiceDecoratorImpl
focal_class.interfaces: implements ServiceDecorator
focal_class.class_method_signature: ServiceDecoratorImpl.ServiceDecoratorImpl()
focal_class.full_signature: public  ServiceDecoratorImpl()
focal_class.identifier: ServiceDecoratorImpl
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  ServiceDecoratorImpl()
focal_class.class_method_signature: ServiceDecoratorImpl.decorate(ServiceReference<?> sref, Map<String, Object> target)
focal_class.full_signature: @Override public void decorate(ServiceReference<?> sref, Map<String, Object> target)
focal_class.identifier: decorate
focal_class.modifiers: @Override public
focal_class.parameters: (ServiceReference<?> sref, Map<String, Object> target)
focal_class.return: void
focal_class.signature: void decorate(ServiceReference<?> sref, Map<String, Object> target)
focal_class.class_method_signature: ServiceDecoratorImpl.addDecorations(Bundle bundle)
focal_class.full_signature:  void addDecorations(Bundle bundle)
focal_class.identifier: addDecorations
focal_class.parameters: (Bundle bundle)
focal_class.return: void
focal_class.signature: void addDecorations(Bundle bundle)
focal_class.class_method_signature: ServiceDecoratorImpl.getRule(Bundle bundle, MatchType match)
focal_class.full_signature: private Rule getRule(Bundle bundle, MatchType match)
focal_class.identifier: getRule
focal_class.modifiers: private
focal_class.parameters: (Bundle bundle, MatchType match)
focal_class.return: Rule
focal_class.signature: Rule getRule(Bundle bundle, MatchType match)
focal_class.class_method_signature: ServiceDecoratorImpl.getDecorationElements(Bundle bundle)
focal_class.full_signature:  List<ServiceDecorationType> getDecorationElements(Bundle bundle)
focal_class.identifier: getDecorationElements
focal_class.parameters: (Bundle bundle)
focal_class.return: List<ServiceDecorationType>
focal_class.signature: List<ServiceDecorationType> getDecorationElements(Bundle bundle)
focal_class.class_method_signature: ServiceDecoratorImpl.removeDecorations(Bundle bundle)
focal_class.full_signature:  void removeDecorations(Bundle bundle)
focal_class.identifier: removeDecorations
focal_class.parameters: (Bundle bundle)
focal_class.return: void
focal_class.signature: void removeDecorations(Bundle bundle)
focal_method.body: void addDecorations(Bundle bundle) {
          for (ServiceDecorationType decoration : getDecorationElements(bundle)) {
              for (MatchType match : decoration.getMatch()) {
                  decorations.add(getRule(bundle, match));
              }
          }
      }
focal_method.class_method_signature: ServiceDecoratorImpl.addDecorations(Bundle bundle)
focal_method.full_signature:  void addDecorations(Bundle bundle)
focal_method.identifier: addDecorations
focal_method.invocations: getDecorationElements getMatch add getRule
focal_method.parameters: (Bundle bundle)
focal_method.return: void
focal_method.signature: void addDecorations(Bundle bundle)