Example usage for org.apache.commons.beanutils LazyDynaMap LazyDynaMap

List of usage examples for org.apache.commons.beanutils LazyDynaMap LazyDynaMap

Introduction

In this page you can find the example usage for org.apache.commons.beanutils LazyDynaMap LazyDynaMap.

Prototype

public LazyDynaMap(DynaClass dynaClass) 

Source Link

Document

Construct a new LazyDynaMap based on an exisiting DynaClass

Usage

From source file:org.mule.module.netsuite.api.util.MapToRecordConverter.java

public Record toRecord(RecordType recordType, Map<String, Object> recordAttributes) throws Exception {
    Record record = recordType.getRecordClass().newInstance();
    beanUtils.copyProperties(record, new LazyDynaMap(recordAttributes));
    return record;
}