Class UrlMappingFactoryBean

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<java.util.Map>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

    public class UrlMappingFactoryBean
    extends org.springframework.beans.factory.config.AbstractFactoryBean<java.util.Map>
    implements org.springframework.context.ApplicationContextAware
    A factory bean that creates the URL mappings, checking if there is a bean called urlMap in the ctx and merging that with the mappings set explicitly on this bean.
    Since:
    0.3
    • Field Summary

      • Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

        logger
      • Fields inherited from interface org.springframework.beans.factory.FactoryBean

        OBJECT_TYPE_ATTRIBUTE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.Map createInstance()  
      java.lang.Class<?> getObjectType()  
      void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)  
      void setMappings​(java.util.Map mappings)  
      • Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

        afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UrlMappingFactoryBean

        public UrlMappingFactoryBean()
    • Method Detail

      • createInstance

        protected java.util.Map createInstance()
        Specified by:
        createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<java.util.Map>
      • getObjectType

        public java.lang.Class<?> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<java.util.Map>
        Specified by:
        getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<java.util.Map>
      • setMappings

        public void setMappings​(java.util.Map mappings)
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware