test_class.declarator: QUIET_PERIOD_IN_MS = 3000
test_class.modifier: public static final
test_class.original_string: public static final int QUIET_PERIOD_IN_MS = 3000;
test_class.type: int
test_class.var_name: QUIET_PERIOD_IN_MS
test_class.declarator: parserContext
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ParserContext parserContext;
test_class.type: ParserContext
test_class.var_name: parserContext
test_class.declarator: componentDefinitionRegistry
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ComponentDefinitionRegistry componentDefinitionRegistry;
test_class.type: ComponentDefinitionRegistry
test_class.var_name: componentDefinitionRegistry
test_class.declarator: jaxrsProxyFactoryCaptor
test_class.modifier: @Captor
      private
test_class.original_string: @Captor
      private ArgumentCaptor<ReferenceMetadata> jaxrsProxyFactoryCaptor;
test_class.type: ArgumentCaptor<ReferenceMetadata>
test_class.var_name: jaxrsProxyFactoryCaptor
test_class.declarator: metadata
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ComponentMetadata metadata;
test_class.type: ComponentMetadata
test_class.var_name: metadata
test_class.declarator: handler
test_class.modifier: private
test_class.original_string: private MicrobuleNamespaceHandler handler;
test_class.type: MicrobuleNamespaceHandler
test_class.var_name: handler
test_class.file: osgi/blueprint/src/test/java/org/microbule/osgi/blueprint/MicrobuleNamespaceHandlerTest.java
test_class.identifier: MicrobuleNamespaceHandlerTest
test_class.superclass: extends MockObjectTestCase
test_case.body: @Test
      public void testParseContainer() throws Exception {
          Element root = parseRootElement();
          NodeList nodes = root.getElementsByTagNameNS(NAMESPACE_URI, "container");
          Element element = (Element) nodes.item(0);
  
          Metadata parsed = handler.parse(element, parserContext);
          assertTrue(parsed instanceof BeanMetadata);
          BeanMetadata beanMetadata = (BeanMetadata) parsed;
  
          assertEquals(OsgiContainer.class.getName(), beanMetadata.getClassName());
          assertEquals(2, beanMetadata.getArguments().size());
          final BeanArgument argument1 = beanMetadata.getArguments().get(0);
          assertTrue(argument1.getValue() instanceof RefMetadata);
          RefMetadata bundleContextRef = (RefMetadata) argument1.getValue();
          assertEquals("blueprintBundleContext", bundleContextRef.getComponentId());
          assertEquals(BundleContext.class.getName(), argument1.getValueType());
  
          final BeanArgument argument2 = beanMetadata.getArguments().get(1);
          assertTrue(argument2.getValue() instanceof ValueMetadata);
          ValueMetadata quietPeriodInMs = (ValueMetadata) argument2.getValue();
          assertEquals("1000", quietPeriodInMs.getStringValue());
          assertEquals(Long.TYPE.getName(), quietPeriodInMs.getType());
          assertEquals(Long.TYPE.getName(), argument2.getValueType());
      }
test_case.class_method_signature: MicrobuleNamespaceHandlerTest.testParseContainer()
test_case.full_signature: @Test public void testParseContainer()
test_case.identifier: testParseContainer
test_case.invocations: parseRootElement getElementsByTagNameNS item parse assertTrue assertEquals getName getClassName assertEquals size getArguments get getArguments assertTrue getValue getValue assertEquals getComponentId assertEquals getName getValueType get getArguments assertTrue getValue getValue assertEquals getStringValue assertEquals getName getType assertEquals getName getValueType
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testParseContainer()
focal_class.declarator: CONTAINER_ELEMENT = "container"
focal_class.modifier: private static final
focal_class.original_string: private static final String CONTAINER_ELEMENT = "container";
focal_class.type: String
focal_class.var_name: CONTAINER_ELEMENT
focal_class.declarator: QUIET_PERIOD_IN_MS_ATTR = "quietPeriodInMs"
focal_class.modifier: private static final
focal_class.original_string: private static final String QUIET_PERIOD_IN_MS_ATTR = "quietPeriodInMs";
focal_class.type: String
focal_class.var_name: QUIET_PERIOD_IN_MS_ATTR
focal_class.declarator: JAXRS_PROXY_FACTORY_ID = "_jaxrsProxyFactory"
focal_class.modifier: public static final
focal_class.original_string: public static final String JAXRS_PROXY_FACTORY_ID = "_jaxrsProxyFactory";
focal_class.type: String
focal_class.var_name: JAXRS_PROXY_FACTORY_ID
focal_class.declarator: SERVICE_INTERFACE_ATTR = "serviceInterface"
focal_class.modifier: private static final
focal_class.original_string: private static final String SERVICE_INTERFACE_ATTR = "serviceInterface";
focal_class.type: String
focal_class.var_name: SERVICE_INTERFACE_ATTR
focal_class.declarator: REF_ATTR = "ref"
focal_class.modifier: private static final
focal_class.original_string: private static final String REF_ATTR = "ref";
focal_class.type: String
focal_class.var_name: REF_ATTR
focal_class.declarator: NAMESPACE_URI = "http://www.microbule.org/blueprint"
focal_class.modifier: public static final
focal_class.original_string: public static final String NAMESPACE_URI = "http://www.microbule.org/blueprint";
focal_class.type: String
focal_class.var_name: NAMESPACE_URI
focal_class.declarator: CREATE_PROXY_METHOD = "createProxy"
focal_class.modifier: private static final
focal_class.original_string: private static final String CREATE_PROXY_METHOD = "createProxy";
focal_class.type: String
focal_class.var_name: CREATE_PROXY_METHOD
focal_class.declarator: LOGGER = LoggerFactory.getLogger(MicrobuleNamespaceHandler.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(MicrobuleNamespaceHandler.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: SCHEMA_LOCATION = "schemas/blueprint/microbule.xsd"
focal_class.modifier: private static final
focal_class.original_string: private static final String SCHEMA_LOCATION = "schemas/blueprint/microbule.xsd";
focal_class.type: String
focal_class.var_name: SCHEMA_LOCATION
focal_class.declarator: ID_ATTR = "id"
focal_class.modifier: private static final
focal_class.original_string: private static final String ID_ATTR = "id";
focal_class.type: String
focal_class.var_name: ID_ATTR
focal_class.declarator: BUNDLE_CONTEXT_ID = "blueprintBundleContext"
focal_class.modifier: public static final
focal_class.original_string: public static final String BUNDLE_CONTEXT_ID = "blueprintBundleContext";
focal_class.type: String
focal_class.var_name: BUNDLE_CONTEXT_ID
focal_class.declarator: defaultQuietPeriodInMs
focal_class.modifier: private final
focal_class.original_string: private final long defaultQuietPeriodInMs;
focal_class.type: long
focal_class.var_name: defaultQuietPeriodInMs
focal_class.file: osgi/blueprint/src/main/java/org/microbule/osgi/blueprint/MicrobuleNamespaceHandler.java
focal_class.identifier: MicrobuleNamespaceHandler
focal_class.interfaces: implements NamespaceHandler
focal_class.class_method_signature: MicrobuleNamespaceHandler.MicrobuleNamespaceHandler(long defaultQuietPeriodInMs)
focal_class.full_signature: public  MicrobuleNamespaceHandler(long defaultQuietPeriodInMs)
focal_class.identifier: MicrobuleNamespaceHandler
focal_class.modifiers: public
focal_class.parameters: (long defaultQuietPeriodInMs)
focal_class.signature:  MicrobuleNamespaceHandler(long defaultQuietPeriodInMs)
focal_class.class_method_signature: MicrobuleNamespaceHandler.decorate(Node node, ComponentMetadata componentMetadata, ParserContext parserContext)
focal_class.full_signature: @Override public ComponentMetadata decorate(Node node, ComponentMetadata componentMetadata, ParserContext parserContext)
focal_class.identifier: decorate
focal_class.modifiers: @Override public
focal_class.parameters: (Node node, ComponentMetadata componentMetadata, ParserContext parserContext)
focal_class.return: ComponentMetadata
focal_class.signature: ComponentMetadata decorate(Node node, ComponentMetadata componentMetadata, ParserContext parserContext)
focal_class.class_method_signature: MicrobuleNamespaceHandler.getManagedClasses()
focal_class.full_signature: @Override public Set<Class> getManagedClasses()
focal_class.identifier: getManagedClasses
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Set<Class>
focal_class.signature: Set<Class> getManagedClasses()
focal_class.class_method_signature: MicrobuleNamespaceHandler.getSchemaLocation(String namespaceUri)
focal_class.full_signature: @Override public URL getSchemaLocation(String namespaceUri)
focal_class.identifier: getSchemaLocation
focal_class.modifiers: @Override public
focal_class.parameters: (String namespaceUri)
focal_class.return: URL
focal_class.signature: URL getSchemaLocation(String namespaceUri)
focal_class.class_method_signature: MicrobuleNamespaceHandler.parse(Element element, ParserContext parserContext)
focal_class.full_signature: @Override public Metadata parse(Element element, ParserContext parserContext)
focal_class.identifier: parse
focal_class.modifiers: @Override public
focal_class.parameters: (Element element, ParserContext parserContext)
focal_class.return: Metadata
focal_class.signature: Metadata parse(Element element, ParserContext parserContext)
focal_class.class_method_signature: MicrobuleNamespaceHandler.createJaxrsProxyFactoryReference(ParserContext parserContext)
focal_class.full_signature: private void createJaxrsProxyFactoryReference(ParserContext parserContext)
focal_class.identifier: createJaxrsProxyFactoryReference
focal_class.modifiers: private
focal_class.parameters: (ParserContext parserContext)
focal_class.return: void
focal_class.signature: void createJaxrsProxyFactoryReference(ParserContext parserContext)
focal_class.class_method_signature: MicrobuleNamespaceHandler.serviceRef(ParserContext parserContext, String id, Class<?> serviceInterface)
focal_class.full_signature: private MutableReferenceMetadata serviceRef(ParserContext parserContext, String id, Class<?> serviceInterface)
focal_class.identifier: serviceRef
focal_class.modifiers: private
focal_class.parameters: (ParserContext parserContext, String id, Class<?> serviceInterface)
focal_class.return: MutableReferenceMetadata
focal_class.signature: MutableReferenceMetadata serviceRef(ParserContext parserContext, String id, Class<?> serviceInterface)
focal_class.class_method_signature: MicrobuleNamespaceHandler.parseContainerElement(Element element, ParserContext parserContext)
focal_class.full_signature: private Metadata parseContainerElement(Element element, ParserContext parserContext)
focal_class.identifier: parseContainerElement
focal_class.modifiers: private
focal_class.parameters: (Element element, ParserContext parserContext)
focal_class.return: Metadata
focal_class.signature: Metadata parseContainerElement(Element element, ParserContext parserContext)
focal_class.class_method_signature: MicrobuleNamespaceHandler.bundleContextRef(ParserContext parserContext)
focal_class.full_signature: private RefMetadata bundleContextRef(ParserContext parserContext)
focal_class.identifier: bundleContextRef
focal_class.modifiers: private
focal_class.parameters: (ParserContext parserContext)
focal_class.return: RefMetadata
focal_class.signature: RefMetadata bundleContextRef(ParserContext parserContext)
focal_class.class_method_signature: MicrobuleNamespaceHandler.ref(ParserContext context, String value)
focal_class.full_signature: private static RefMetadata ref(ParserContext context, String value)
focal_class.identifier: ref
focal_class.modifiers: private static
focal_class.parameters: (ParserContext context, String value)
focal_class.return: RefMetadata
focal_class.signature: RefMetadata ref(ParserContext context, String value)
focal_class.class_method_signature: MicrobuleNamespaceHandler.value(ParserContext context, String value, Class<T> type)
focal_class.full_signature: private ValueMetadata value(ParserContext context, String value, Class<T> type)
focal_class.identifier: value
focal_class.modifiers: private
focal_class.parameters: (ParserContext context, String value, Class<T> type)
focal_class.return: ValueMetadata
focal_class.signature: ValueMetadata value(ParserContext context, String value, Class<T> type)
focal_class.class_method_signature: MicrobuleNamespaceHandler.parseProxyElement(Element element, ParserContext parserContext)
focal_class.full_signature: protected Metadata parseProxyElement(Element element, ParserContext parserContext)
focal_class.identifier: parseProxyElement
focal_class.modifiers: protected
focal_class.parameters: (Element element, ParserContext parserContext)
focal_class.return: Metadata
focal_class.signature: Metadata parseProxyElement(Element element, ParserContext parserContext)
focal_class.class_method_signature: MicrobuleNamespaceHandler.serviceInterfaceOf(Element element)
focal_class.full_signature: protected String serviceInterfaceOf(Element element)
focal_class.identifier: serviceInterfaceOf
focal_class.modifiers: protected
focal_class.parameters: (Element element)
focal_class.return: String
focal_class.signature: String serviceInterfaceOf(Element element)
focal_class.class_method_signature: MicrobuleNamespaceHandler.whenNotExists(ParserContext parserContext, String componentId, Consumer<ParserContext> fn)
focal_class.full_signature: private void whenNotExists(ParserContext parserContext, String componentId, Consumer<ParserContext> fn)
focal_class.identifier: whenNotExists
focal_class.modifiers: private
focal_class.parameters: (ParserContext parserContext, String componentId, Consumer<ParserContext> fn)
focal_class.return: void
focal_class.signature: void whenNotExists(ParserContext parserContext, String componentId, Consumer<ParserContext> fn)
focal_class.class_method_signature: MicrobuleNamespaceHandler.parseServerElement(Element element, ParserContext parserContext)
focal_class.full_signature: protected Metadata parseServerElement(Element element, ParserContext parserContext)
focal_class.identifier: parseServerElement
focal_class.modifiers: protected
focal_class.parameters: (Element element, ParserContext parserContext)
focal_class.return: Metadata
focal_class.signature: Metadata parseServerElement(Element element, ParserContext parserContext)
focal_method.body: @Override
      public Metadata parse(Element element, ParserContext parserContext) {
          if (CONTAINER_ELEMENT.equals(element.getLocalName())) {
              return parseContainerElement(element, parserContext);
          } else if ("server".equals(element.getLocalName())) {
              return parseServerElement(element, parserContext);
          } else if ("proxy".equals(element.getLocalName())) {
              return parseProxyElement(element, parserContext);
          }
          return null;
      }
focal_method.class_method_signature: MicrobuleNamespaceHandler.parse(Element element, ParserContext parserContext)
focal_method.full_signature: @Override public Metadata parse(Element element, ParserContext parserContext)
focal_method.identifier: parse
focal_method.invocations: equals getLocalName parseContainerElement equals getLocalName parseServerElement equals getLocalName parseProxyElement
focal_method.modifiers: @Override public
focal_method.parameters: (Element element, ParserContext parserContext)
focal_method.return: Metadata
focal_method.signature: Metadata parse(Element element, ParserContext parserContext)