/** * <p> * Parses the ORB {@code initializers} section of the JacORB subsystem configuration according to the XSD version 1.0. * </p> * * @param reader the {@code XMLExtendedStreamReader} used to read the configuration XML. * @param node the {@code ModelNode} that will hold the parsed ORB initializers configuration. * @throws javax.xml.stream.XMLStreamException * if an error occurs while parsing the XML. */ private void parseORBInitializersConfig_1_0(XMLExtendedStreamReader reader, ModelNode node) throws XMLStreamException { requireNoAttributes(reader); // read the element text - a comma-separated list of initializers. String initializersList = reader.getElementText(); if (initializersList != null) { String[] initializers = initializersList.split(","); // read each configured initializer and set the appropriate values in the model node. for (String initializer : initializers) { SimpleAttributeDefinition definition = (SimpleAttributeDefinition)JacORBSubsystemDefinitions.valueOf(initializer); if (definition != null && JacORBSubsystemDefinitions.ORB_INIT_ATTRIBUTES.contains(definition)) node.get(definition.getName()).set(JacORBSubsystemConstants.ON); else throw JacORBLogger.ROOT_LOGGER.invalidInitializerConfig(initializer, reader.getLocation()); } } }
((SimpleAttributeDefinition)JacORBSubsystemDefinitions.valueOf(attribute.getLocalName())). parseAndSetParameter(attrValue, node, reader);
default: SimpleAttributeDefinition definition = ((SimpleAttributeDefinition) JacORBSubsystemDefinitions. valueOf(attribute.getLocalName()));
/** * <p> * Parses the ORB {@code initializers} section of the JacORB subsystem configuration according to the XSD version 1.0. * </p> * * @param reader the {@code XMLExtendedStreamReader} used to read the configuration XML. * @param node the {@code ModelNode} that will hold the parsed ORB initializers configuration. * @throws javax.xml.stream.XMLStreamException * if an error occurs while parsing the XML. */ private void parseORBInitializersConfig_1_0(XMLExtendedStreamReader reader, ModelNode node) throws XMLStreamException { requireNoAttributes(reader); // read the element text - a comma-separated list of initializers. String initializersList = reader.getElementText(); if (initializersList != null) { String[] initializers = initializersList.split(","); // read each configured initializer and set the appropriate values in the model node. for (String initializer : initializers) { SimpleAttributeDefinition definition = (SimpleAttributeDefinition)JacORBSubsystemDefinitions.valueOf(initializer); if (definition != null && JacORBSubsystemDefinitions.ORB_INIT_ATTRIBUTES.contains(definition)) node.get(definition.getName()).set(JacORBSubsystemConstants.ON); else throw JacORBLogger.ROOT_LOGGER.invalidInitializerConfig(initializer, reader.getLocation()); } } }
((SimpleAttributeDefinition)JacORBSubsystemDefinitions.valueOf(attribute.getLocalName())). parseAndSetParameter(attrValue, node, reader);
default: SimpleAttributeDefinition definition = ((SimpleAttributeDefinition) JacORBSubsystemDefinitions. valueOf(attribute.getLocalName()));