public Object newInstance(Class type) { try { Constructor customConstructor = getMungedConstructor(type); return customConstructor.newInstance(new Object[0]); } catch (NoSuchMethodException e) { throw new ObjectAccessException("Cannot construct " + type.getName(), e); } catch (SecurityException e) { throw new ObjectAccessException("Cannot construct " + type.getName(), e); } catch (InstantiationException e) { throw new ObjectAccessException("Cannot construct " + type.getName(), e); } catch (IllegalAccessException e) { throw new ObjectAccessException("Cannot construct " + type.getName(), e); } catch (IllegalArgumentException e) { throw new ObjectAccessException("Cannot construct " + type.getName(), e); } catch (InvocationTargetException e) { throw new ObjectAccessException("Cannot construct " + type.getName(), e); } }
public Object newInstance(Class type) { try { Constructor customConstructor = getMungedConstructor(type); return customConstructor.newInstance(new Object[0]); } catch (NoSuchMethodException e) { throw new ObjectAccessException("Cannot construct " + type.getName(), e); } catch (SecurityException e) { throw new ObjectAccessException("Cannot construct " + type.getName(), e); } catch (InstantiationException e) { throw new ObjectAccessException("Cannot construct " + type.getName(), e); } catch (IllegalAccessException e) { throw new ObjectAccessException("Cannot construct " + type.getName(), e); } catch (IllegalArgumentException e) { throw new ObjectAccessException("Cannot construct " + type.getName(), e); } catch (InvocationTargetException e) { throw new ObjectAccessException("Cannot construct " + type.getName(), e); } }
public Object newInstance(Class type) { try { Constructor customConstructor = getMungedConstructor(type); return customConstructor.newInstance(new Object[0]); } catch (NoSuchMethodException e) { throw new ObjectAccessException("Cannot construct " + type.getName(), e); } catch (SecurityException e) { throw new ObjectAccessException("Cannot construct " + type.getName(), e); } catch (InstantiationException e) { throw new ObjectAccessException("Cannot construct " + type.getName(), e); } catch (IllegalAccessException e) { throw new ObjectAccessException("Cannot construct " + type.getName(), e); } catch (IllegalArgumentException e) { throw new ObjectAccessException("Cannot construct " + type.getName(), e); } catch (InvocationTargetException e) { throw new ObjectAccessException("Cannot construct " + type.getName(), e); } }