Search in sources :

Example 6 with ISystemOperations

use of com.axway.ats.core.system.model.ISystemOperations in project ats-framework by Axway.

the class SystemOperations method getSystemProperty.

/**
     * Get the value of the environment's system property.<br/>
     *
     * It calls internally System.getProperty("property name");
     *
     * @param propertyName the name of the system property
     * @return the value of the system property
     */
@PublicAtsApi
public String getSystemProperty(@Validate(name = "propertyName", type = ValidationType.NOT_NULL) String propertyName) {
    // validate input parameters
    new Validator().validateMethodParameters(new Object[] { propertyName });
    // execute action
    ISystemOperations operations = getOperationsImplementationFor(atsAgent);
    return operations.getSystemProperty(propertyName);
}
Also used : ISystemOperations(com.axway.ats.core.system.model.ISystemOperations) Validator(com.axway.ats.core.validation.Validator) PublicAtsApi(com.axway.ats.common.PublicAtsApi)

Aggregations

PublicAtsApi (com.axway.ats.common.PublicAtsApi)6 ISystemOperations (com.axway.ats.core.system.model.ISystemOperations)6 Validator (com.axway.ats.core.validation.Validator)4