Class ConfigurationProperty

java.lang.Object
io.microsphere.spring.config.ConfigurationProperty

public class ConfigurationProperty extends Object
The Spring Configuration Property class
Since:
1.0.0
Author:
Mercy
See Also:
  • Environment
  • PropertySource
  • Constructor Details

    • ConfigurationProperty

      public ConfigurationProperty(String name)
    • ConfigurationProperty

      public ConfigurationProperty(String name, Class<?> type)
  • Method Details

    • getName

      @Nonnull public String getName()
    • getType

      @Nonnull public Class<?> getType()
    • setType

      public void setType(@Nonnull Class<?> type)
    • getValue

      @Nullable public Object getValue()
    • setValue

      public void setValue(@Nullable Object value)
    • getDefaultValue

      @Nullable public Object getDefaultValue()
    • setDefaultValue

      public void setDefaultValue(@Nullable Object defaultValue)
    • isRequired

      public boolean isRequired()
    • setRequired

      public void setRequired(boolean required)
    • getMetadata

      @Nonnull public ConfigurationProperty.Metadata getMetadata()
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object