See the nested exception for additional details.
217218219220221222223224225226227228229230231232233234235236237238239
{ return Composite.class.cast( proxyConstructor.newInstance( invocationHandler ) ); } catch( Exception e ) { throw new ConstructionException( e ); } } else { try { Object[] args = new Object[ proxyConstructor.getParameterTypes().length ]; Composite composite = Composite.class.cast( proxyConstructor.newInstance( args ) ); proxyClass.getField( "_instance" ).set( composite, invocationHandler ); return composite; } catch( Exception e ) { throw new ConstructionException( e ); } } }
8586878889909192939495969798
{ throw (InvalidCompositeException) targetException; } String message = "Could not instantiate \n " + constructor.getDeclaringClass() + "\nusing constructor:\n " + constructor .toGenericString(); throw new ConstructionException( message, targetException ); } catch( Throwable e ) { System.err.println( constructor.toGenericString() ); System.err.println( Arrays.asList( parametersInstance ) ); throw new ConstructionException( "Could not instantiate " + constructor.getDeclaringClass(), e ); } }
281282283284285286287288289290291
} public Object newInstance( InjectionContext injectionContext ) { // Try all bound constructors, in order ConstructionException exception = null; for( ConstructorModel constructorModel : boundConstructors ) { try { return constructorModel.newInstance( injectionContext );
134135136137138139140141
{ throw new EntityCompositeAlreadyExistsException( identity ); } catch( EntityStoreException e ) { throw new ConstructionException( "Could not create new entity in store", e ); } }
135136137138139140141142143
handler.setMethod( invocationMethod ); return handler; } catch( NoSuchMethodException e ) { throw new ConstructionException( "Could not find modifier method", e ); } } }
4243444546474849
Constraint<?, ?> constraint = new CompositeConstraintInstance( compositeConstraintsInstance ); return new ConstraintInstance( constraint, annotation ); } catch( Exception e ) { throw new ConstructionException( "Could not instantiate constraint implementation", e ); } }
4142434445464748
Constraint<?, ?> constraint = constraintClass.newInstance(); return new ConstraintInstance( constraint, annotation ); } catch( Exception e ) { throw new ConstructionException( "Could not instantiate constraint implementation", e ); } }
495496497498499500501502
{ return valueSerialization().deserialize( modelModule.model().valueType(), serializedState ); } catch( ValueSerializationException ex ) { throw new ConstructionException( "Could not create value from serialized state", ex ); } }
146147148149150151152153154155156
if( objectFactory == null ) { return null; } ConstructionException exception = null; Object obj = null; try { obj = objectFactory.newObject( aClass );
184185186187188189190191192193194
{ return null; } Object obj = null; ConstructionException exception = null; try { obj = compositeBuilderFactory.newTransient( aClass ); }