Package org.hdiv.application

Examples of org.hdiv.application.IApplication


   *
   * @param servletContext {@link ServletContext} instance
   * @return IApplication object
   */
  public static IApplication getApplication(ServletContext servletContext) {
    IApplication app = (IApplication) servletContext.getAttribute(APPLICATION_SERVLETCONTEXT_KEY);
    if (app == null) {
      throw new HDIVException("IApplication has not been initialized in servlet context");
    }
    return app;
  }
View Full Code Here


    this.config = wac.getBean(HDIVConfig.class);

    // Init servlet context scoped objects
    HDIVUtil.setHDIVConfig(this.config, servletContext);

    IApplication application = wac.getBean(IApplication.class);
    HDIVUtil.setApplication(application, servletContext);

    ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource();
    messageSource.setBeanClassLoader(wac.getClassLoader());
    messageSource.setBasename(Constants.MESSAGE_SOURCE_PATH);
View Full Code Here

TOP

Related Classes of org.hdiv.application.IApplication

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.