/** * Instantiate and return a new DynaBean instance, associated * with this DynaClass. * @return A new <code>DynaBean</code> instance */ public DynaBean newInstance() { // Create a new instance of the Map Map<String, Object> newMap = null; try { @SuppressWarnings("unchecked") final // The new map is used as properties map Map<String, Object> temp = getMap().getClass().newInstance(); newMap = temp; } catch(final Exception ex) { newMap = newMap(); } // Crate new LazyDynaMap and initialize properties final LazyDynaMap lazyMap = new LazyDynaMap(newMap); final DynaProperty[] properties = this.getDynaProperties(); if (properties != null) { for (DynaProperty propertie : properties) { lazyMap.add(propertie); } } return lazyMap; }
/** * Instantiate and return a new DynaBean instance, associated * with this DynaClass. * @return A new <code>DynaBean</code> instance */ public DynaBean newInstance() { // Create a new instance of the Map Map<String, Object> newMap = null; try { @SuppressWarnings("unchecked") final // The new map is used as properties map Map<String, Object> temp = getMap().getClass().newInstance(); newMap = temp; } catch(final Exception ex) { newMap = newMap(); } // Crate new LazyDynaMap and initialize properties final LazyDynaMap lazyMap = new LazyDynaMap(newMap); final DynaProperty[] properties = this.getDynaProperties(); if (properties != null) { for (DynaProperty propertie : properties) { lazyMap.add(propertie); } } return lazyMap; }
/** * Instantiate and return a new DynaBean instance, associated * with this DynaClass. * @return A new <code>DynaBean</code> instance */ public DynaBean newInstance() { // Create a new instance of the Map Map newMap = null; try { newMap = (Map)getMap().getClass().newInstance(); } catch(Exception ex) { newMap = newMap(); } // Crate new LazyDynaMap and initialize properties LazyDynaMap lazyMap = new LazyDynaMap(newMap); DynaProperty[] properties = this.getDynaProperties(); if (properties != null) { for (int i = 0; i < properties.length; i++) { lazyMap.add(properties[i]); } } return lazyMap; }
/** * Instantiate and return a new DynaBean instance, associated * with this DynaClass. * @return A new <code>DynaBean</code> instance */ public DynaBean newInstance() { // Create a new instance of the Map Map newMap = null; try { newMap = (Map)getMap().getClass().newInstance(); } catch(Exception ex) { newMap = newMap(); } // Crate new LazyDynaMap and initialize properties LazyDynaMap lazyMap = new LazyDynaMap(newMap); DynaProperty[] properties = this.getDynaProperties(); if (properties != null) { for (int i = 0; i < properties.length; i++) { lazyMap.add(properties[i]); } } return lazyMap; }
/** * Instantiate and return a new DynaBean instance, associated * with this DynaClass. * @return A new <code>DynaBean</code> instance */ public DynaBean newInstance() { // Create a new instance of the Map Map newMap = null; try { newMap = (Map)getMap().getClass().newInstance(); } catch(Exception ex) { newMap = newMap(); } // Crate new LazyDynaMap and initialize properties LazyDynaMap lazyMap = new LazyDynaMap(newMap); DynaProperty[] properties = this.getDynaProperties(); if (properties != null) { for (int i = 0; i < properties.length; i++) { lazyMap.add(properties[i]); } } return lazyMap; }
/** * Instantiate and return a new DynaBean instance, associated * with this DynaClass. * @return A new <code>DynaBean</code> instance */ public DynaBean newInstance() { // Create a new instance of the Map Map<String, Object> newMap = null; try { @SuppressWarnings("unchecked") final // The new map is used as properties map Map<String, Object> temp = getMap().getClass().newInstance(); newMap = temp; } catch(final Exception ex) { newMap = newMap(); } // Crate new LazyDynaMap and initialize properties final LazyDynaMap lazyMap = new LazyDynaMap(newMap); final DynaProperty[] properties = this.getDynaProperties(); if (properties != null) { for (DynaProperty propertie : properties) { lazyMap.add(propertie); } } return lazyMap; }