| 1 |  |   | 
  | 2 |  |   | 
  | 3 |  |   | 
  | 4 |  |   | 
  | 5 |  |   | 
  | 6 |  |   | 
  | 7 |  |   | 
  | 8 |  |   | 
  | 9 |  |   | 
  | 10 |  |   | 
  | 11 |  |   | 
  | 12 |  |   | 
  | 13 |  |   | 
  | 14 |  |   | 
  | 15 |  |   | 
  | 16 |  |  package org.kuali.rice.student.core.web.context; | 
  | 17 |  |   | 
  | 18 |  |  import java.io.IOException; | 
  | 19 |  |  import java.util.Locale; | 
  | 20 |  |  import java.util.Map; | 
  | 21 |  |   | 
  | 22 |  |  import javax.servlet.ServletContext; | 
  | 23 |  |   | 
  | 24 |  |  import org.springframework.beans.BeansException; | 
  | 25 |  |  import org.springframework.beans.factory.BeanFactory; | 
  | 26 |  |  import org.springframework.beans.factory.NoSuchBeanDefinitionException; | 
  | 27 |  |  import org.springframework.beans.factory.config.AutowireCapableBeanFactory; | 
  | 28 |  |  import org.springframework.context.ApplicationContext; | 
  | 29 |  |  import org.springframework.context.ApplicationEvent; | 
  | 30 |  |  import org.springframework.context.MessageSourceResolvable; | 
  | 31 |  |  import org.springframework.context.NoSuchMessageException; | 
  | 32 |  |  import org.springframework.core.io.Resource; | 
  | 33 |  |  import org.springframework.web.context.WebApplicationContext; | 
  | 34 |  |   | 
  | 35 | 0 |  public class RiceWebApplicationContextProxy implements WebApplicationContext { | 
  | 36 |  |       | 
  | 37 |  |      private ApplicationContext applicationContext; | 
  | 38 |  |      private ServletContext servletContext; | 
  | 39 |  |   | 
  | 40 |  |      public void setApplicationContext(ApplicationContext applicationContext) { | 
  | 41 | 0 |          this.applicationContext = applicationContext; | 
  | 42 | 0 |      } | 
  | 43 |  |       | 
  | 44 |  |      public void setServletContext(ServletContext servletContext) { | 
  | 45 | 0 |          this.servletContext = servletContext; | 
  | 46 | 0 |      } | 
  | 47 |  |       | 
  | 48 |  |      public boolean containsBean(String name) { | 
  | 49 | 0 |          return applicationContext.containsBean(name); | 
  | 50 |  |      } | 
  | 51 |  |   | 
  | 52 |  |      public boolean containsBeanDefinition(String beanName) { | 
  | 53 | 0 |          return applicationContext.containsBeanDefinition(beanName); | 
  | 54 |  |      } | 
  | 55 |  |   | 
  | 56 |  |      public boolean containsLocalBean(String name) { | 
  | 57 | 0 |          return applicationContext.containsLocalBean(name); | 
  | 58 |  |      } | 
  | 59 |  |   | 
  | 60 |  |      public String[] getAliases(String name) { | 
  | 61 | 0 |          return applicationContext.getAliases(name); | 
  | 62 |  |      } | 
  | 63 |  |   | 
  | 64 |  |      public AutowireCapableBeanFactory getAutowireCapableBeanFactory() throws IllegalStateException { | 
  | 65 | 0 |          return applicationContext.getAutowireCapableBeanFactory(); | 
  | 66 |  |      } | 
  | 67 |  |   | 
  | 68 |  |      public Object getBean(String name, Class requiredType) throws BeansException { | 
  | 69 | 0 |          return applicationContext.getBean(name, requiredType); | 
  | 70 |  |      } | 
  | 71 |  |   | 
  | 72 |  |      public Object getBean(String name, Object[] args) throws BeansException { | 
  | 73 | 0 |          return applicationContext.getBean(name, args); | 
  | 74 |  |      } | 
  | 75 |  |   | 
  | 76 |  |      public Object getBean(String name) throws BeansException { | 
  | 77 | 0 |          return applicationContext.getBean(name); | 
  | 78 |  |      } | 
  | 79 |  |   | 
  | 80 |  |      public int getBeanDefinitionCount() { | 
  | 81 | 0 |          return applicationContext.getBeanDefinitionCount(); | 
  | 82 |  |      } | 
  | 83 |  |   | 
  | 84 |  |      public String[] getBeanDefinitionNames() { | 
  | 85 | 0 |          return applicationContext.getBeanDefinitionNames(); | 
  | 86 |  |      } | 
  | 87 |  |   | 
  | 88 |  |      public String[] getBeanNamesForType(Class type, boolean includeNonSingletons, boolean allowEagerInit) { | 
  | 89 | 0 |          return applicationContext.getBeanNamesForType(type, includeNonSingletons, allowEagerInit); | 
  | 90 |  |      } | 
  | 91 |  |   | 
  | 92 |  |      public String[] getBeanNamesForType(Class type) { | 
  | 93 | 0 |          return applicationContext.getBeanNamesForType(type); | 
  | 94 |  |      } | 
  | 95 |  |   | 
  | 96 |  |      public Map getBeansOfType(Class type, boolean includeNonSingletons, boolean allowEagerInit) throws BeansException { | 
  | 97 | 0 |          return applicationContext.getBeansOfType(type, includeNonSingletons, allowEagerInit); | 
  | 98 |  |      } | 
  | 99 |  |   | 
  | 100 |  |      public Map getBeansOfType(Class type) throws BeansException { | 
  | 101 | 0 |          return applicationContext.getBeansOfType(type); | 
  | 102 |  |      } | 
  | 103 |  |   | 
  | 104 |  |      public ClassLoader getClassLoader() { | 
  | 105 | 0 |          return applicationContext.getClassLoader(); | 
  | 106 |  |      } | 
  | 107 |  |   | 
  | 108 |  |      public String getDisplayName() { | 
  | 109 | 0 |          return applicationContext.getDisplayName(); | 
  | 110 |  |      } | 
  | 111 |  |   | 
  | 112 |  |      public String getId() { | 
  | 113 | 0 |          return applicationContext.getId(); | 
  | 114 |  |      } | 
  | 115 |  |   | 
  | 116 |  |      public String getMessage(MessageSourceResolvable resolvable, Locale locale) throws NoSuchMessageException { | 
  | 117 | 0 |          return applicationContext.getMessage(resolvable, locale); | 
  | 118 |  |      } | 
  | 119 |  |   | 
  | 120 |  |      public String getMessage(String code, Object[] args, Locale locale) throws NoSuchMessageException { | 
  | 121 | 0 |          return applicationContext.getMessage(code, args, locale); | 
  | 122 |  |      } | 
  | 123 |  |   | 
  | 124 |  |      public String getMessage(String code, Object[] args, String defaultMessage, Locale locale) { | 
  | 125 | 0 |          return applicationContext.getMessage(code, args, defaultMessage, locale); | 
  | 126 |  |      } | 
  | 127 |  |   | 
  | 128 |  |      public ApplicationContext getParent() { | 
  | 129 | 0 |          return applicationContext.getParent(); | 
  | 130 |  |      } | 
  | 131 |  |   | 
  | 132 |  |      public BeanFactory getParentBeanFactory() { | 
  | 133 | 0 |          return applicationContext.getParentBeanFactory(); | 
  | 134 |  |      } | 
  | 135 |  |   | 
  | 136 |  |      public Resource getResource(String location) { | 
  | 137 | 0 |          return applicationContext.getResource(location); | 
  | 138 |  |      } | 
  | 139 |  |   | 
  | 140 |  |      public Resource[] getResources(String locationPattern) throws IOException { | 
  | 141 | 0 |          return applicationContext.getResources(locationPattern); | 
  | 142 |  |      } | 
  | 143 |  |   | 
  | 144 |  |      public ServletContext getServletContext() { | 
  | 145 | 0 |          return this.servletContext; | 
  | 146 |  |      } | 
  | 147 |  |   | 
  | 148 |  |      public long getStartupDate() { | 
  | 149 | 0 |          return applicationContext.getStartupDate(); | 
  | 150 |  |      } | 
  | 151 |  |   | 
  | 152 |  |      public Class getType(String name) throws NoSuchBeanDefinitionException { | 
  | 153 | 0 |          return applicationContext.getType(name); | 
  | 154 |  |      } | 
  | 155 |  |   | 
  | 156 |  |      public boolean isPrototype(String name) throws NoSuchBeanDefinitionException { | 
  | 157 | 0 |          return applicationContext.isPrototype(name); | 
  | 158 |  |      } | 
  | 159 |  |   | 
  | 160 |  |      public boolean isSingleton(String name) throws NoSuchBeanDefinitionException { | 
  | 161 | 0 |          return applicationContext.isSingleton(name); | 
  | 162 |  |      } | 
  | 163 |  |   | 
  | 164 |  |      public boolean isTypeMatch(String name, Class targetType) throws NoSuchBeanDefinitionException { | 
  | 165 | 0 |          return applicationContext.isTypeMatch(name, targetType); | 
  | 166 |  |      } | 
  | 167 |  |   | 
  | 168 |  |      public void publishEvent(ApplicationEvent event) { | 
  | 169 | 0 |          applicationContext.publishEvent(event); | 
  | 170 | 0 |      } | 
  | 171 |  |   | 
  | 172 |  |       | 
  | 173 |  |  } |