Class ParameterBeanMapperUtils

java.lang.Object
org.springframework.cloud.servicebroker.model.util.ParameterBeanMapperUtils

public final class ParameterBeanMapperUtils extends Object
Utilities for mapping parameter maps to Java beans.
Author:
Scott Frederick
  • Method Details

    • mapParametersToBean

      public static <T> T mapParametersToBean(Map<String,Object> parameters, Class<T> cls)
      Instantiates an object of the specified type and populates properties of the object from the provided parameters.
      Type Parameters:
      T - the type of the object to instantiate and populate
      Parameters:
      parameters - a Map of values to populate the object from
      cls - the Class representing the type of the object to instantiate and populate
      Returns:
      the instantiated and populated object