Code example for ApplicationContextException

0
        this.clinic = clinic; 
    } 
 
    public void afterPropertiesSet() throws Exception { 
        if (clinic == null) 
            throw new ApplicationContextException("Must set clinic bean property on " + getClass()); 
    } 
 
    // handlers 
    /** 
     *  
     * Custom handler for welcome 
     *  
     * @param request 
     *            current HTTP request 
     * @param response 
     *            current HTTP response 
     * @return a ModelAndView to render the response 
     */