Class ClientPropertiesImpl

java.lang.Object
com.atlassian.crowd.service.client.AbstractClientProperties
com.atlassian.crowd.service.client.ClientPropertiesImpl
All Implemented Interfaces:
ClientProperties

public class ClientPropertiesImpl extends AbstractClientProperties
This bean is a container for the application's crowd.properties.
  • Constructor Details

    • ClientPropertiesImpl

      protected ClientPropertiesImpl()
  • Method Details

    • updateProperties

      public void updateProperties(Properties properties)
      Updates all the client properties with new vew values, which are read from the properties passed as argument. All the properties are updated, not just the ones passed. The values are taken first from the system property, if exists, then from the environment property, if exists, and then from the passed properties. If none of those sources yields a value, then the value is set to null (for Strings) or 0L (for longs).
      Parameters:
      properties - properties to update from, unless overridden by system properties or environment variables
    • loadPropertyString

      @Nullable public String loadPropertyString(Properties properties, String propertyName)
    • loadAndLogPropertyString

      @Nullable protected String loadAndLogPropertyString(Properties properties, String propertyName)
    • newInstanceFromResourceLocator

      public static ClientPropertiesImpl newInstanceFromResourceLocator(ResourceLocator resourceLocator)
    • newInstanceFromProperties

      public static ClientPropertiesImpl newInstanceFromProperties(Properties properties)