Package org.tkit.onecx.quarkus.parameter
Class ParametersService
java.lang.Object
org.tkit.onecx.quarkus.parameter.ParametersService
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ParametersService
public ParametersService()
-
-
Method Details
-
getValue
Return the resolved parameter value with the specified type.- Type Parameters:
T- The parameter type- Parameters:
name- The parameter nametype- The type into which the resolved parameter value should get converteddefaultValue- The default parameter value to return if the parameter value could not get resolved- Returns:
- the resolved parameter value as an instance of the requested type
- Throws:
UpdateException- if the update of the parameter failed and propertyonecx.parameters.throw-update-exceptionis set totrue.ConvertValueException- if the parameter value cannot be converted to the specified typeTenantException- if you enable multi-tenancy andApplicationContextis null.
-
getValue
Return the resolved parameter value with the specified type.This is a shortcut to the
getValue(String, Class, Object)method usingnullasdefaultValue.- Type Parameters:
T- The parameter type- Parameters:
name- The parameter nametype- The type into which the resolved parameter value should get converted- Returns:
- the resolved parameter value as an instance of the requested type
- Throws:
UpdateException- if the update of the parameter failed and propertyonecx.parameters.throw-update-exceptionis set totrue.ConvertValueException- if the parameter value cannot be converted to the specified typeTenantException- if you enable multi-tenancy andApplicationContextis null.
-