invokePostConstruct(getWebApp().getMetaClass(r).getPostConstructMethods(), r);
invokePostConstruct(getWebApp().getMetaClass(r).getPostConstructMethods(), r);
/** * Returns all the methods in the ancestry chain annotated with {@link PostConstruct} * from those defined in the derived type toward those defined in the base type. * * Normally invocation requires visiting the list in the reverse order. * @since 1.220 */ public SingleLinkedList<MethodRef> getPostConstructMethods() { if (postConstructMethods ==null) { SingleLinkedList<MethodRef> l = baseClass==null ? SingleLinkedList.<MethodRef>empty() : baseClass.getPostConstructMethods(); for (MethodRef mr : klass.getDeclaredMethods()) { if (mr.hasAnnotation(PostConstruct.class)) { l = l.grow(mr); } } postConstructMethods = l; } return postConstructMethods; }
/** * Returns all the methods in the ancestry chain annotated with {@link PostConstruct} * from those defined in the derived type toward those defined in the base type. * * Normally invocation requires visiting the list in the reverse order. * @since 1.220 */ public SingleLinkedList<MethodRef> getPostConstructMethods() { if (postConstructMethods ==null) { SingleLinkedList<MethodRef> l = baseClass==null ? SingleLinkedList.<MethodRef>empty() : baseClass.getPostConstructMethods(); for (MethodRef mr : klass.getDeclaredMethods()) { if (mr.hasAnnotation(PostConstruct.class)) { l = l.grow(mr); } } postConstructMethods = l; } return postConstructMethods; }