Examples of GrailsApplication


Examples of grails.core.GrailsApplication

        }
        return applicationSingleton;
    }

    public static GrailsApplication getGrailsApplication() {
        GrailsApplication grailsApplication = findApplication();
        Assert.notNull(grailsApplication, "GrailsApplication not found");
        return grailsApplication;
    }
View Full Code Here

Examples of org.codehaus.groovy.grails.commons.GrailsApplication

  @Override
  protected String determineUrl(final FilterInvocation filterInvocation) {
    HttpServletRequest request = filterInvocation.getHttpRequest();
    HttpServletResponse response = filterInvocation.getHttpResponse();
    ServletContext servletContext = ServletContextHolder.getServletContext();
    GrailsApplication application = ApplicationHolder.getApplication();

    GrailsWebRequest existingRequest = WebUtils.retrieveGrailsWebRequest();

    String requestUrl = request.getRequestURI().substring(request.getContextPath().length());
View Full Code Here

Examples of org.codehaus.groovy.grails.commons.GrailsApplication

  public void init() throws ServletException {
    super.init();

    broadcasterFactory = BroadcasterFactory.getDefault();
    ApplicationContext applicationContext = null;
    GrailsApplication grailsApplication = null;
    try {
      applicationContext =
          ((ApplicationContext) getServletContext().getAttribute(ApplicationAttributes.APPLICATION_CONTEXT));
    } catch (Exception c) {
      log.error("Couldn't manage to retrieve appContext, servlet ordering problem ?", c);
View Full Code Here

Examples of org.codehaus.groovy.grails.commons.GrailsApplication

  public static String getTableName(String originalTableName)
  {
    String tableName = originalTableName;

    GrailsApplication grailsApplication = Holders.getGrailsApplication();
    Object optionalTableMapping =
      grailsApplication.getFlatConfig().get("console.datasource.table." + originalTableName + ".mapping");

    if(optionalTableMapping != null)
    {
      tableName = optionalTableMapping.toString();
      log.info("remapping [" + originalTableName + "] table to [" + tableName + "]");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.