public static Method doGetInitializeMethod(KlassInfo klass) {
        MethodInfo found = null;
        for (MethodInfo method : klass.getMethods()) {
            IocInit ref = method.getAnnotation(IocInit.class);
            if (ref != null) {
                if (found != null) {
                    throw new IllegalStateException("More than two methods are annotated @Initialize in bean: " + klass);
                }
                if (method.getParameterCount() != 0) {
                    throw new IllegalStateException("@Initialize method parameters must be empty.");
                }
                found = method;
            }
        }
        return (found == null) ? null : found.getMethod();
    }
public static Method doGetInitializeMethod ( KlassInfo klass ) { MethodInfo found = null ; for ( MethodInfo method : klass . getMethods ( ) ) { IocInit ref = method . getAnnotation ( IocInit . class ) ; if ( ref != null ) { if ( found != null ) { throw new IllegalStateException ( "More than two methods are annotated @Initialize in bean: " + klass ) ; } if ( method . getParameterCount ( ) != 0 ) { throw new IllegalStateException ( "@Initialize method parameters must be empty." ) ; } found = method ; } } return ( found == null ) ? null : found . getMethod ( ) ; }
@Initialize 标注的函数