Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3282086
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:53:18+00:00 2026-05-17T19:53:18+00:00

I have a plugin that relies on a custom url mapping. When i install

  • 0

I have a plugin that relies on a custom url mapping. When i install the plugin i need to copy the content of the UrlMappings.groovy of the plugin and merge it with the one in the application where the plugin is installed

I would like however to register these url mappings directly into the grails framework without copying the content into the application itself. I don’t want the user to change these mappings as they are core to how the plugins works.

Anyone can give me hints where to venture to achieve that.

Thank you

-ken

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T19:53:18+00:00Added an answer on May 17, 2026 at 7:53 pm

    Seems like i need to interface with UrlMappingsHolderFactoryBean directly to be able to do that. I was hoping that there might be an easier way to do that. The code below is taken from the UrlMappingPlugin itself, the only source that i found to help me solve my problem.

       if (application.isUrlMappingsClass(event.source)) {
            application.addArtefact(UrlMappingsArtefactHandler.TYPE, event.source)
    
            BeanBuilder beans = beans {
                grailsUrlMappingsHolderBean(UrlMappingsHolderFactoryBean) {
                    grailsApplication = application
                }
            }
    
            ApplicationContext appCtx = event.ctx
            beans.registerBeans(appCtx)
    
            HotSwappableTargetSource ts = appCtx.getBean("urlMappingsTargetSource")
            ts.swap appCtx.getBean("grailsUrlMappingsHolderBean")
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ActiveX plugin that we need (if possible) to run in Firefox.
I have a custom developed WordPress plugin that is using jQuery 1.4 and for
I have a plugin that is loaded by this application.. This plugin calls some
does jquery have any plugin that prevents entering any input to a textbox that
I have an Eclipse RCP plugin that requires a DLL. What is the recommended
I have developed a maven plugin that downloads the release notes from JIRA. It's
I have a small jQuery plugin that I use for form AJAX validation. There
I have a function called Colorbox (jQuery plugin) that takes a number of parameters
I have created a simple WordPress plugin that automatically sets my new sites up
I have vague memory of a screenshot of a VS plugin that colors different

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.