Package org.grails.web.mapping
Class UrlMappingsHolderFactoryBean
- java.lang.Object
-
- org.grails.web.mapping.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 Summary
Constructors Constructor Description UrlMappingsHolderFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()UrlMappingsgetObject()java.lang.Class<UrlMappings>getObjectType()booleanisSingleton()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)Set the ApplicationContext that this object runs in.voidsetGrailsApplication(grails.core.GrailsApplication grailsApplication)voidsetPluginManager(grails.plugins.GrailsPluginManager pluginManager)
-
-
-
Method Detail
-
getObject
public UrlMappings getObject() throws java.lang.Exception
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<UrlMappings>- Throws:
java.lang.Exception
-
getObjectType
public java.lang.Class<UrlMappings> getObjectType()
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<UrlMappings>
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<UrlMappings>
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
setGrailsApplication
public void setGrailsApplication(grails.core.GrailsApplication grailsApplication)
- Specified by:
setGrailsApplicationin interfacegrails.core.support.GrailsApplicationAware
-
setPluginManager
public void setPluginManager(grails.plugins.GrailsPluginManager pluginManager)
- Specified by:
setPluginManagerin interfacegrails.plugins.PluginManagerAware
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansExceptionSet 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 afterResourceLoaderAware.setResourceLoader(org.springframework.core.io.ResourceLoader),ApplicationEventPublisherAware.setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher)andMessageSourceAware, if applicable.- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Parameters:
applicationContext- the ApplicationContext object to be used by this object- Throws:
org.springframework.context.ApplicationContextException- in case of context initialization errorsorg.springframework.beans.BeansException- if thrown by application context methods- See Also:
BeanInitializationException
-
-