@Test(expected = IllegalArgumentException.class) public void test1() { ResourceCreationSpecifierFactory.setConfigurationParameters((ResourceCreationSpecifier) null, ParameterizedAE.PARAM_BOOLEAN_1); }
public static void setConfigurationParameters(ResourceCreationSpecifier specifier, Object... configurationData) { if (configurationData == null || configurationData.length == 0) { return; } ConfigurationParameterFactory.ensureParametersComeInPairs(configurationData); ConfigurationParameter[] configurationParameters = new ConfigurationParameter[configurationData.length / 2]; Object[] configurationValues = new Object[configurationData.length / 2]; for (int i = 0; i < configurationValues.length; i++) { String name = (String) configurationData[i * 2]; Object value = configurationData[i * 2 + 1]; ConfigurationParameter param = ConfigurationParameterFactory.createPrimitiveParameter(name, value.getClass(), null, false); configurationParameters[i] = param; configurationValues[i] = ConfigurationParameterFactory.convertParameterValue(param, value); } setConfigurationParameters(specifier, configurationParameters, configurationValues); }
ResourceCreationSpecifierFactory { public static void setConfigurationParameters(ResourceCreationSpecifier specifier, Object... configurationData) { if (configurationData == null || configurationData.length == 0) { return; } ConfigurationParameterFactory.ensureParametersComeInPairs(configurationData); ConfigurationParameter[] configurationParameters = new ConfigurationParameter[configurationData.length / 2]; Object[] configurationValues = new Object[configurationData.length / 2]; for (int i = 0; i < configurationValues.length; i++) { String name = (String) configurationData[i * 2]; Object value = configurationData[i * 2 + 1]; ConfigurationParameter param = ConfigurationParameterFactory.createPrimitiveParameter(name, value.getClass(), null, false); configurationParameters[i] = param; configurationValues[i] = ConfigurationParameterFactory.convertParameterValue(param, value); } setConfigurationParameters(specifier, configurationParameters, configurationValues); } }
ResourceCreationSpecifierFactory { public static void setConfigurationParameters(ResourceCreationSpecifier specifier, Object... configurationData) { if (configurationData == null || configurationData.length == 0) { return; } ConfigurationParameterFactory.ensureParametersComeInPairs(configurationData); ConfigurationParameter[] configurationParameters = new ConfigurationParameter[configurationData.length / 2]; Object[] configurationValues = new Object[configurationData.length / 2]; for (int i = 0; i < configurationValues.length; i++) { String name = (String) configurationData[i * 2]; Object value = configurationData[i * 2 + 1]; ConfigurationParameter param = ConfigurationParameterFactory.createPrimitiveParameter(name, value.getClass(), null, false); configurationParameters[i] = param; configurationValues[i] = ConfigurationParameterFactory.convertParameterValue(param, value); } setConfigurationParameters(specifier, configurationParameters, configurationValues); } private  ResourceCreationSpecifierFactory(); }
ResourceCreationSpecifierFactory { public static void setConfigurationParameters(ResourceCreationSpecifier specifier, Object... configurationData) { if (configurationData == null || configurationData.length == 0) { return; } ConfigurationParameterFactory.ensureParametersComeInPairs(configurationData); ConfigurationParameter[] configurationParameters = new ConfigurationParameter[configurationData.length / 2]; Object[] configurationValues = new Object[configurationData.length / 2]; for (int i = 0; i < configurationValues.length; i++) { String name = (String) configurationData[i * 2]; Object value = configurationData[i * 2 + 1]; ConfigurationParameter param = ConfigurationParameterFactory.createPrimitiveParameter(name, value.getClass(), null, false); configurationParameters[i] = param; configurationValues[i] = ConfigurationParameterFactory.convertParameterValue(param, value); } setConfigurationParameters(specifier, configurationParameters, configurationValues); } private  ResourceCreationSpecifierFactory(); static ResourceCreationSpecifier createResourceCreationSpecifier(URL descriptorURL,
          Object[] parameters); static ResourceCreationSpecifier createResourceCreationSpecifier(XMLInputSource xmlInput,
          Object[] parameters); static ResourceCreationSpecifier createResourceCreationSpecifier(String descriptorPath,
          Object[] parameters); static void setConfigurationParameters(ResourceCreationSpecifier specifier,
          Object... configurationData); static void setConfigurationParameters(ResourceCreationSpecifier specifier,
          ConfigurationParameter[] configurationParameters, Object[] configurationValues); static void setConfigurationParameters(ResourceMetaData metaData,
          ConfigurationParameter[] configurationParameters, Object[] configurationValues); }
ResourceCreationSpecifierFactory { public static void setConfigurationParameters(ResourceCreationSpecifier specifier, Object... configurationData) { if (configurationData == null || configurationData.length == 0) { return; } ConfigurationParameterFactory.ensureParametersComeInPairs(configurationData); ConfigurationParameter[] configurationParameters = new ConfigurationParameter[configurationData.length / 2]; Object[] configurationValues = new Object[configurationData.length / 2]; for (int i = 0; i < configurationValues.length; i++) { String name = (String) configurationData[i * 2]; Object value = configurationData[i * 2 + 1]; ConfigurationParameter param = ConfigurationParameterFactory.createPrimitiveParameter(name, value.getClass(), null, false); configurationParameters[i] = param; configurationValues[i] = ConfigurationParameterFactory.convertParameterValue(param, value); } setConfigurationParameters(specifier, configurationParameters, configurationValues); } private  ResourceCreationSpecifierFactory(); static ResourceCreationSpecifier createResourceCreationSpecifier(URL descriptorURL,
          Object[] parameters); static ResourceCreationSpecifier createResourceCreationSpecifier(XMLInputSource xmlInput,
          Object[] parameters); static ResourceCreationSpecifier createResourceCreationSpecifier(String descriptorPath,
          Object[] parameters); static void setConfigurationParameters(ResourceCreationSpecifier specifier,
          Object... configurationData); static void setConfigurationParameters(ResourceCreationSpecifier specifier,
          ConfigurationParameter[] configurationParameters, Object[] configurationValues); static void setConfigurationParameters(ResourceMetaData metaData,
          ConfigurationParameter[] configurationParameters, Object[] configurationValues);  }