/** * @param descriptorName to lookup the descriptor * @return a PropertyDescriptor for the name specified that is fully * populated */ @Override public final PropertyDescriptor getPropertyDescriptor(final String descriptorName) { final PropertyDescriptor specDescriptor = new PropertyDescriptor.Builder().name(descriptorName).build(); return getPropertyDescriptor(specDescriptor); }
/** * Indicates whether or not the component contains at least one property that supports Expression Language. * * @param component the component to interogate * @return whether or not the component contains at least one sensitive property. */ private boolean containsExpressionLanguage(final ConfigurableComponent component) { for (PropertyDescriptor descriptor : component.getPropertyDescriptors()) { if (descriptor.isExpressionLanguageSupported()) { return true; } } return false; }
/** * Indicates whether or not the component contains at least one sensitive property. * * @param component the component to interogate * @return whether or not the component contains at least one sensitive property. */ private boolean containsSensitiveProperties(final ConfigurableComponent component) { for (PropertyDescriptor descriptor : component.getPropertyDescriptors()) { if (descriptor.isSensitive()) { return true; } } return false; }
@Override protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(final String propertyDescriptorName) { return new PropertyDescriptor.Builder() .name(propertyDescriptorName) .expressionLanguageSupported(false) .addValidator(StandardValidators.NON_EMPTY_VALIDATOR) .required(false) .dynamic(true) .build(); }
@Override public PropertyValue getPropertyValue(final String propertyName) { final PropertyDescriptor descriptor = component.getPropertyDescriptor(propertyName); if (descriptor == null) { return null; } final String setPropertyValue = getProperty(descriptor); final String propValue = (setPropertyValue == null) ? descriptor.getDefaultValue() : setPropertyValue; return new StandardPropertyValue(propValue); }
@Override public PropertyValue getPropertyValue(final String propertyName) { final PropertyDescriptor descriptor = component.getPropertyDescriptor(propertyName); if (descriptor == null) { return null; } final String setPropertyValue = getProperty(descriptor); final String propValue = (setPropertyValue == null) ? descriptor.getDefaultValue() : setPropertyValue; return PropertyValueFactory.getInstance(descriptor, propValue, controllerServiceLookup); }
@Override public PropertyValue getPropertyValue(final PropertyDescriptor property) { final String configuredValue = properties.get(property); return new StandardPropertyValue(configuredValue == null ? property.getDefaultValue() : configuredValue); }
@Override public List<PropertyDescriptor> getPropertyDescriptors() { return component.getPropertyDescriptors(); }
@Override public PropertyValue newPropertyValue(final String rawValue) { return new StandardPropertyValue(rawValue); }
@Override public PropertyValue evaluate(Record record) { return new DecoratedInterpretedPropertyValue(this, record); }
@Override protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(final String propertyDescriptorName) { return new PropertyDescriptor.Builder() .name(propertyDescriptorName) .expressionLanguageSupported(false) .addValidator(StandardValidators.COMMA_SEPARATED_LIST_VALIDATOR) .required(false) .dynamic(true) .build(); }
/** * Indicates whether or not the component contains at least one property that supports Expression Language. * * @param component the component to interogate * @return whether or not the component contains at least one sensitive property. */ private boolean containsExpressionLanguage(final ConfigurableComponent component) { for (PropertyDescriptor descriptor : component.getPropertyDescriptors()) { if (descriptor.isExpressionLanguageSupported()) { return true; } } return false; }
@Override public PropertyValue getPropertyValue(final String propertyName) { final PropertyDescriptor descriptor = component.getPropertyDescriptor(propertyName); if (descriptor == null) { return null; } final String setPropertyValue = getProperty(descriptor); final String propValue = (setPropertyValue == null) ? descriptor.getDefaultValue() : setPropertyValue; return new StandardPropertyValue(propValue); }
@Override public PropertyValue getPropertyValue(final String propertyName) { final PropertyDescriptor descriptor = component.getPropertyDescriptor(propertyName); if (descriptor == null) { return null; } final String setPropertyValue = getProperty(descriptor); final String propValue = (setPropertyValue == null) ? descriptor.getDefaultValue() : setPropertyValue; return PropertyValueFactory.getInstance(descriptor, propValue, controllerServiceLookup); }
@Override public PropertyValue newPropertyValue(final String rawValue) { return new StandardPropertyValue(rawValue); }
@Override protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(final String propertyDescriptorName) { return new PropertyDescriptor.Builder() .name(propertyDescriptorName) .expressionLanguageSupported(false) .addValidator(StandardValidators.NON_EMPTY_VALIDATOR) .required(false) .dynamic(true) .build(); }
/** * Indicates whether or not the component contains at least one property that supports Expression Language. * * @param component the component to interogate * @return whether or not the component contains at least one sensitive property. */ private boolean containsExpressionLanguage(final ConfigurableComponent component) { for (PropertyDescriptor descriptor : component.getPropertyDescriptors()) { if (descriptor.isExpressionLanguageSupported()) { return true; } } return false; }
@Override public PropertyValue newPropertyValue(final String rawValue) { return new StandardPropertyValue(rawValue); }
@Override protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(final String propertyDescriptorName) { return new PropertyDescriptor.Builder() .name(propertyDescriptorName) .expressionLanguageSupported(false) .addValidator(StandardValidators.NON_EMPTY_VALIDATOR) .required(false) .dynamic(true) .build(); }
@Override protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(final String propertyDescriptorName) { return new PropertyDescriptor.Builder() .name(propertyDescriptorName) .expressionLanguageSupported(false) .addValidator(StandardValidators.NON_EMPTY_VALIDATOR) .required(false) .dynamic(true) .build(); }