private void invokePostConstruct ( SingleLinkedList < MethodRef > methods , Object r ) { if ( methods . isEmpty ( ) ) return ; invokePostConstruct ( methods . tail , r ) ; try { methods . head . invoke ( r ) ; } catch ( InvocationTargetException e ) { throw new IllegalArgumentException ( "Unable to post-construct " + r , e ) ; } catch ( IllegalAccessException e ) { throw ( Error ) new IllegalAccessError ( ) . initCause ( e ) ; } }
Invoke PostConstruct method from the base class to subtypes .