jetbrains.buildServer.serverSide
Class BasePropertiesModel

java.lang.Object
  extended by jetbrains.buildServer.serverSide.BasePropertiesModel
All Implemented Interfaces:
TeamCityProperties.Model
Direct Known Subclasses:
CompositePropertiesModel, FileWatchingPropertiesModel

public abstract class BasePropertiesModel
extends java.lang.Object
implements TeamCityProperties.Model

Created 27.02.13 21:50

Since:
8.0
Author:
Eugene Petrenko (eugene.petrenko@jetbrains.com)

Field Summary
protected static java.util.Map<java.lang.String,java.lang.String> EMPTY_PROPERTIES
           
 
Constructor Summary
BasePropertiesModel()
           
 
Method Summary
 java.lang.String getPropertyOrNull(java.lang.String key)
           
 java.util.Map<java.lang.String,java.lang.String> getSystemProperties()
           
protected  java.lang.String getSystemProperty(java.lang.String key)
           
 java.util.Map<java.lang.String,java.lang.String> getUserDefinedProperties()
           
protected  java.lang.String getUserDefinedProperty(java.lang.String key)
           
protected static java.util.Map<java.lang.String,java.lang.String> propertiesToMap(java.util.Properties properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_PROPERTIES

protected static final java.util.Map<java.lang.String,java.lang.String> EMPTY_PROPERTIES
Constructor Detail

BasePropertiesModel

public BasePropertiesModel()
Method Detail

getPropertyOrNull

@Nullable
public final java.lang.String getPropertyOrNull(@NotNull
                                                         java.lang.String key)
Specified by:
getPropertyOrNull in interface TeamCityProperties.Model
Parameters:
key - name to check
Returns:
property or null

getSystemProperty

@Nullable
protected java.lang.String getSystemProperty(@NotNull
                                                      java.lang.String key)

getUserDefinedProperty

@Nullable
protected java.lang.String getUserDefinedProperty(@NotNull
                                                           java.lang.String key)

getSystemProperties

@NotNull
public java.util.Map<java.lang.String,java.lang.String> getSystemProperties()
Specified by:
getSystemProperties in interface TeamCityProperties.Model
Returns:
JVM provided properties map

getUserDefinedProperties

@NotNull
public java.util.Map<java.lang.String,java.lang.String> getUserDefinedProperties()
Specified by:
getUserDefinedProperties in interface TeamCityProperties.Model
Returns:
User provided properties map. In some implementations internal.properties file is used

propertiesToMap

@NotNull
protected static java.util.Map<java.lang.String,java.lang.String> propertiesToMap(@NotNull
                                                                                          java.util.Properties properties)