public Builder addFullMeasurementTraitsReference(String prefix) { refs.add(new ConfigRef(null, prefix, ConfigRef.Type.FULL, ConfigRef.Context.MEASUREMENT_TRAIT)); return this; }
switch (refProp.getContext()) { case PLUGIN_CONFIGURATION: switch (refProp.getType()) { case LIST: PropertyList list = pluginConfiguration.getList(refProp.getName()).deepCopy(false); list.setName(refProp.getTargetName()); PropertyMap map = pluginConfiguration.getMap(refProp.getName()).deepCopy(false); map.setName(refProp.getTargetName()); PropertySimple simple = pluginConfiguration.getSimple(refProp.getName()).deepCopy(false); simple.setName(refProp.getTargetName()); for (Property p : pluginConfiguration.getProperties()) { Property copy = p.deepCopy(false); if (refProp.getTargetName() != null) { copy.setName(refProp.getTargetName() + copy.getName()); switch (refProp.getType()) { case LIST: PropertyList list = resourceConfiguration.getList(refProp.getName()).deepCopy(false); list.setName(refProp.getTargetName()); PropertyMap map = resourceConfiguration.getMap(refProp.getName()).deepCopy(false); map.setName(refProp.getTargetName()); PropertySimple simple = resourceConfiguration.getSimple(refProp.getName()).deepCopy(false); simple.setName(refProp.getTargetName());
@Override protected void fillPropertyMap(PropertyMap map) { super.fillPropertyMap(map); map.put(new PropertySimple(BUNDLE_DEST_DEFINITION_CONNECTION_NAME, connectionString)); PropertyList list = new PropertyList(BUNDLE_DEST_DEFINITION_REF_LIST_NAME); map.put(list); for (ConfigRef ref : referencedConfiguration) { PropertyMap refMap = new PropertyMap(BUNDLE_DEST_DEFINITION_REF_LIST_MEMBER_NAME); refMap.put(new PropertySimple(BUNDLE_DEST_DEF_REF_TYPE_NAME, ref.getType().name())); refMap.put(new PropertySimple(BUNDLE_DEST_DEF_REF_CONTEXT_NAME, ref.getContext().name())); refMap.put(new PropertySimple(BUNDLE_DEST_DEF_REF_NAME_NAME, ref.getName())); refMap.put(new PropertySimple(BUNDLE_DEST_DEF_REF_TARGET_NAME_NAME, ref.getTargetName())); list.add(refMap); } }
public Builder addFullPluginConfigurationReference(String prefix) { refs.add(new ConfigRef(prefix, null, ConfigRef.Type.FULL, ConfigRef.Context.PLUGIN_CONFIGURATION)); return this; }
public Builder addFullResourceConfigurationReference(String prefix) { refs.add(new ConfigRef(null, prefix, ConfigRef.Type.FULL, ConfigRef.Context.RESOURCE_CONFIGURATION)); return this; }
public Builder addMeasurementTraitReference(String name, String targetName) { refs.add(new ConfigRef(targetName, name, null, ConfigRef.Context.MEASUREMENT_TRAIT)); return this; }
public Builder addPluginConfigurationSimplePropertyReference(String name, String targetName) { refs.add(new ConfigRef(targetName, name, ConfigRef.Type.SIMPLE, ConfigRef.Context.PLUGIN_CONFIGURATION)); return this; }
public Builder addResourceConfigurationListPropertyReference(String name, String targetName) { refs.add(new ConfigRef(targetName, name, ConfigRef.Type.LIST, ConfigRef.Context.RESOURCE_CONFIGURATION)); return this; }
public Builder addPluginConfigurationMapPropertyReference(String name, String targetName) { refs.add(new ConfigRef(targetName, name, ConfigRef.Type.MAP, ConfigRef.Context.PLUGIN_CONFIGURATION)); return this; }
public Builder addPropertyReference(ConfigRef.Type type, ConfigRef.Context context, String name, String targetName) { refs.add(new ConfigRef(targetName, name, type, context)); return this; }
public Builder addResourceConfigurationMapPropertyReference(String name, String targetName) { refs.add(new ConfigRef(targetName, name, ConfigRef.Type.MAP, ConfigRef.Context.RESOURCE_CONFIGURATION)); return this; }
public Builder addPluginConfigurationListPropertyReference(String name, String targetName) { refs.add(new ConfigRef(targetName, name, ConfigRef.Type.LIST, ConfigRef.Context.PLUGIN_CONFIGURATION)); return this; }
public Builder addResourceConfigurationSimplePropertyReference(String name, String targetName) { refs.add(new ConfigRef(targetName, name, ConfigRef.Type.SIMPLE, ConfigRef.Context.RESOURCE_CONFIGURATION)); return this; }