void apply( org.neo4j.kernel.api.proc.Context ctx, Object object ) throws ProcedureException { try { setter.invoke( object, provider.apply( ctx ) ); } catch ( Throwable e ) { throw new ProcedureException( Status.Procedure.ProcedureCallFailed, e, "Unable to inject component to field `%s`, please ensure it is public and non-final: %s", field.getName(), e.getMessage() ); } } }
void apply( org.neo4j.kernel.api.proc.Context ctx, Object object ) throws ProcedureException { try { setter.invoke( object, provider.apply( ctx ) ); } catch ( Throwable e ) { throw new ProcedureException( Status.Procedure.ProcedureCallFailed, e, "Unable to inject component to field `%s`, please ensure it is public and non-final: %s", field.getName(), e.getMessage() ); } } }