@Override public Object initAndInject(String className, List<? extends ConfigProperty> configs, ClassLoader cl) throws DeployException { try { Class clz = Class.forName(className, true, cl); Object o = clz.newInstance(); if (configs != null) { Injection injector = new Injection(); for (ConfigProperty cpmd : configs) { if (cpmd.isValueSet()) { if (XsdString.isNull(cpmd.getConfigPropertyType())) { injector.inject(o, cpmd.getConfigPropertyName().getValue(), cpmd.getConfigPropertyValue().getValue()); } else { injector.inject(o, cpmd.getConfigPropertyName().getValue(), cpmd.getConfigPropertyValue().getValue(), cpmd.getConfigPropertyType().getValue()); } } } } return o; } catch (Throwable t) { throw ConnectorLogger.ROOT_LOGGER.deploymentFailed(t, className); } }
for (ConfigProperty c : original) if (ijProperties != null && ijProperties.containsKey(c.getConfigPropertyName().getValue())) XsdString newValue = new XsdString(ijProperties.get(c.getConfigPropertyName().getValue()), c .getConfigPropertyValue().getId(), c.getConfigPropertyValue().getTag()); ConfigProperty newProp = new ConfigPropertyImpl(c.getDescriptions(), c.getConfigPropertyName(), c.getConfigPropertyType(), newValue, c.getConfigPropertyIgnore(), c.getConfigPropertySupportsDynamicUpdates(), c.getConfigPropertyConfidential(), c.getId(), c.isMandatory(), c.getAttachedClassName(), c.getConfigPropertyIgnoreId(), c.getConfigPropertySupportsDynamicUpdatesId(), c.getConfigPropertyConfidentialId());
String name = cp.getConfigPropertyName().getValue(); Class<?> ct = Class.forName(cp.getConfigPropertyType().getValue(), true, cl); if (cp.getConfigPropertyValue() != null && cp.getConfigPropertyValue().getValue() != null) valueProperties.put(name, cp.getConfigPropertyValue().getValue());
leftNames.add(l.getConfigPropertyName().getValue()); for (String name : leftNames) if (name.equals(r.getConfigPropertyName().getValue())) toAdd = false;
if (configProperty.isMandatory()) configProperty.getConfigPropertyName(), null)); if (configProperty.isMandatory()) configProperty.getConfigPropertyName(), null));
throws NoSuchMethodException String methodName = getOrIs + cpmd.getConfigPropertyName().getValue().substring(0, 1).toUpperCase(Locale.US); if (cpmd.getConfigPropertyName().getValue().length() > 1) methodName += cpmd.getConfigPropertyName().getValue().substring(1); sb = sb.append(" Property: " + cpmd.getConfigPropertyName().getValue()); sb = sb.append(" Type: " + method.getReturnType().getName());
@Override protected Object initAndInject(String className, List<? extends ConfigProperty> configs, ClassLoader cl) throws DeployException { try { Class clz = Class.forName(className, true, cl); Object o = clz.newInstance(); if (configs != null) { Injection injector = new Injection(); for (ConfigProperty cpmd : configs) { if (cpmd.isValueSet()) { if (XsdString.isNull(cpmd.getConfigPropertyType())) { injector.inject(o, cpmd.getConfigPropertyName().getValue(), cpmd.getConfigPropertyValue().getValue()); } else { injector.inject(o, cpmd.getConfigPropertyName().getValue(), cpmd.getConfigPropertyValue().getValue(), cpmd.getConfigPropertyType().getValue()); } } } } return o; } catch (Throwable t) { throw ConnectorLogger.ROOT_LOGGER.deploymentFailed(t, className); } }
throws NoSuchMethodException String methodName = getOrIs + cpmd.getConfigPropertyName().getValue().substring(0, 1).toUpperCase(Locale.US); if (cpmd.getConfigPropertyName().getValue().length() > 1) methodName += cpmd.getConfigPropertyName().getValue().substring(1); sb = sb.append(" Property: " + cpmd.getConfigPropertyName().getValue()); sb = sb.append(" Type: " + method.getReturnType().getName());
@Override protected Object initAndInject(String className, List<? extends ConfigProperty> configs, ClassLoader cl) throws DeployException { try { Class clz = Class.forName(className, true, cl); Object o = clz.newInstance(); if (configs != null) { Injection injector = new Injection(); for (ConfigProperty cpmd : configs) { if (cpmd.isValueSet()) { if (XsdString.isNull(cpmd.getConfigPropertyType())) { injector.inject(o, cpmd.getConfigPropertyName().getValue(), cpmd.getConfigPropertyValue().getValue()); } else { injector.inject(o, cpmd.getConfigPropertyName().getValue(), cpmd.getConfigPropertyValue().getValue(), cpmd.getConfigPropertyType().getValue()); } } } } return o; } catch (Throwable t) { throw ConnectorLogger.ROOT_LOGGER.deploymentFailed(t, className); } }
.getConfigPropertyName().getValue()); switch (prototype)
@Override public Object initAndInject(String className, List<? extends ConfigProperty> configs, ClassLoader cl) throws DeployException { try { Class clz = Class.forName(className, true, cl); Object o = clz.newInstance(); if (configs != null) { Injection injector = new Injection(); for (ConfigProperty cpmd : configs) { if (cpmd.isValueSet()) { if (XsdString.isNull(cpmd.getConfigPropertyType())) { injector.inject(o, cpmd.getConfigPropertyName().getValue(), cpmd.getConfigPropertyValue().getValue()); } else { injector.inject(o, cpmd.getConfigPropertyName().getValue(), cpmd.getConfigPropertyValue().getValue(), cpmd.getConfigPropertyType().getValue()); } } } } return o; } catch (Throwable t) { throw ConnectorLogger.ROOT_LOGGER.deploymentFailed(t, className); } }
for (ConfigProperty cpmd : configs) if (cpmd.isValueSet()) injector.inject(o, cpmd.getConfigPropertyName().getValue(), cpmd.getConfigPropertyValue().getValue(), cpmd.getConfigPropertyType().getValue());
for (ConfigProperty cpmd : configs) if (cpmd.isValueSet()) if (XsdString.isNull(cpmd.getConfigPropertyType())) cpmd.getConfigPropertyName().getValue(), cpmd.getConfigPropertyValue().getValue()); cpmd.getConfigPropertyName().getValue(), cpmd.getConfigPropertyValue().getValue(), cpmd.getConfigPropertyType().getValue()); String newPropertyType = convertType(cpmd.getConfigPropertyType().getValue()); cpmd.getConfigPropertyName().getValue(), cpmd.getConfigPropertyValue().getValue(), newPropertyType);