Class AbstractSystemProperty<T>

java.lang.Object
com.atlassian.crowd.common.properties.AbstractSystemProperty<T>
Direct Known Subclasses:
BooleanSystemProperty, DurationSystemProperty, IntegerSystemProperty, StringSystemProperty

public abstract class AbstractSystemProperty<T> extends Object
  • Field Details

    • propertyName

      protected final String propertyName
    • defaultValueSupplier

      protected final Supplier<T> defaultValueSupplier
  • Constructor Details

    • AbstractSystemProperty

      protected AbstractSystemProperty(@Nonnull String propertyName, @Nonnull T value)
    • AbstractSystemProperty

      protected AbstractSystemProperty(@Nonnull String propertyName, @Nonnull Supplier<T> defaultValueSupplier)
  • Method Details

    • getName

      @Nonnull public String getName()
    • getValue

      @Nonnull public T getValue()
      Returns the value of this system property or the default if it's not set.
    • fromString

      @Nullable protected abstract T fromString(@Nonnull String stringValue)
    • setValue

      public void setValue(@Nonnull T value)
      Sets the value of this system property.
    • setRawValue

      public void setRawValue(@Nonnull String value)
    • clearValue

      public void clearValue()
      Clears the value of this system property.