Class UrlMappingsHolderFactoryBean

  • All Implemented Interfaces:
    grails.core.support.GrailsApplicationAware, grails.plugins.PluginManagerAware, org.springframework.beans.factory.Aware, org.springframework.beans.factory.FactoryBean<UrlMappings>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

    public class UrlMappingsHolderFactoryBean
    extends java.lang.Object
    implements org.springframework.beans.factory.FactoryBean<UrlMappings>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, grails.core.support.GrailsApplicationAware, grails.plugins.PluginManagerAware
    Constructs the UrlMappingsHolder from the registered UrlMappings class within a GrailsApplication.
    Since:
    0.5
    • Constructor Detail

      • UrlMappingsHolderFactoryBean

        public UrlMappingsHolderFactoryBean()
    • Method Detail

      • getObject

        public UrlMappings getObject()
                              throws java.lang.Exception
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean<UrlMappings>
        Throws:
        java.lang.Exception
      • getObjectType

        public java.lang.Class<UrlMappings> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<UrlMappings>
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.springframework.beans.factory.FactoryBean<UrlMappings>
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
      • setGrailsApplication

        public void setGrailsApplication​(grails.core.GrailsApplication grailsApplication)
        Specified by:
        setGrailsApplication in interface grails.core.support.GrailsApplicationAware
      • setPluginManager

        public void setPluginManager​(grails.plugins.GrailsPluginManager pluginManager)
        Specified by:
        setPluginManager in interface grails.plugins.PluginManagerAware
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Set the ApplicationContext that this object runs in. Normally this call will be used to initialize the object.

        Invoked after population of normal bean properties but before an init callback such as InitializingBean.afterPropertiesSet() or a custom init-method. Invoked after ResourceLoaderAware.setResourceLoader(org.springframework.core.io.ResourceLoader), ApplicationEventPublisherAware.setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher) and MessageSourceAware, if applicable.

        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Parameters:
        applicationContext - the ApplicationContext object to be used by this object
        Throws:
        org.springframework.context.ApplicationContextException - in case of context initialization errors
        org.springframework.beans.BeansException - if thrown by application context methods
        See Also:
        BeanInitializationException