Package org.codehaus.groovy.grails.commons

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


  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

  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

Related Classes of org.codehaus.groovy.grails.commons.GrailsApplication

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.