MCPcopy Create free account

hub / github.com/SeasonPanPan/myspring / functions

Functions72 in github.com/SeasonPanPan/myspring

↓ 8 callersMethodgetName
@return the name
src/com/plf/bean/PropertyDefinition.java:29
↓ 5 callersMethodgetUser
(int id)
src/test/service/UserService.java:20
↓ 5 callersMethodisNotEmpty
string is not empty @param src @return
src/com/plf/utils/CommonUtis.java:27
↓ 3 callersMethodgetId
@return the id
src/com/plf/bean/BeanDefinition.java:38
↓ 3 callersMethodgetValue
@return the value
src/com/plf/bean/PropertyDefinition.java:44
↓ 2 callersMethodaddPropertyDefinition
addPropertyDefinition @param propertyDefinition
src/com/plf/bean/BeanDefinition.java:85
↓ 2 callersMethodgetBean
通过指定名字获取bean @param name @return
src/com/plf/bean/BeanFactory.java:21
↓ 2 callersMethodgetClassName
@return the className
src/com/plf/bean/BeanDefinition.java:53
↓ 2 callersMethodgetHandlerMethod
getHandlerMethod @param url @return
src/com/plf/context/ApplicationContext.java:33
↓ 2 callersMethodgetRef
@return the ref
src/com/plf/bean/PropertyDefinition.java:59
↓ 2 callersMethodgetSigletons
@return the sigletons
src/com/plf/bean/DefaultListableBeanFactory.java:64
↓ 2 callersMethodrefresh
启动核心方法,初始化bean/context都在这里实现。<br> 注:实际spring的这个方法在ConfigurableApplicationContext中 @throws Exception
src/com/plf/context/ApplicationContext.java:25
↓ 1 callersMethodaddBeanDefines
addBeanDefines @param beanDefines
src/com/plf/bean/DefaultListableBeanFactory.java:57
↓ 1 callersMethodaddObject
添加模型数据 @param attributeName @param attributeValue
src/com/plf/servlet/ModelAndView.java:70
↓ 1 callersMethodbeanSetInvoke
反射调用,设置字段 @param bean @param propertyDefinition @param propertyDescriptor @throws IllegalAccessException @throws InvocationTargetException
src/com/plf/bean/DefaultListableBeanFactory.java:165
↓ 1 callersMethodconvert
string换为指定type类型 @param value @param type @return
src/com/plf/utils/CommonUtis.java:58
↓ 1 callersMethoddoDispatch
@param req @param resp @throws Exception
src/com/plf/servlet/DispatcherServlet.java:71
↓ 1 callersMethoddoPost
(HttpServletRequest req, HttpServletResponse resp)
src/com/plf/servlet/DispatcherServlet.java:59
↓ 1 callersMethoddoScanner
扫描 指定目录下的文件 @param packageName
src/com/plf/context/AbstractApplicationContext.java:102
↓ 1 callersMethodgetAttributes
@return the attributes
src/com/plf/servlet/ModelAndView.java:52
↓ 1 callersMethodgetBeanDefines
@return the beanDefines
src/com/plf/bean/ApplicationXmlResult.java:42
↓ 1 callersMethodgetComponentScan
@return the componentScan
src/com/plf/bean/ApplicationXmlResult.java:28
↓ 1 callersMethodgetController
getController @param url @return
src/com/plf/context/ApplicationContext.java:41
↓ 1 callersMethodgetId
@return the id
src/test/bean/User.java:22
↓ 1 callersMethodgetName
@return the name
src/test/bean/User.java:37
↓ 1 callersMethodgetPropertyDefinitions
@return the propertyDefinitions
src/com/plf/bean/BeanDefinition.java:68
↓ 1 callersMethodgetViewName
@return the viewName
src/com/plf/servlet/ModelAndView.java:37
↓ 1 callersMethodhandle
handle @param context @param req @param resp @throws Exception
src/com/plf/servlet/ServletHandler.java:45
↓ 1 callersMethodhandleObjectResult
直接返回数据 @param data @param resp @throws IOException
src/com/plf/servlet/ServletHandler.java:139
↓ 1 callersMethodhandleViewResult
视图处理 @param view @param req @param resp @throws IOException @throws ServletException
src/com/plf/servlet/ServletHandler.java:115
↓ 1 callersMethodinitScanAnnotation
扫描注解 @param className
src/com/plf/context/AbstractApplicationContext.java:127
↓ 1 callersMethodinjectObject
为bean对象的属性注入值 Administer 2013-8-18 下午7:59:03
src/com/plf/bean/DefaultListableBeanFactory.java:98
↓ 1 callersMethodinstanceBeans
实例化bean,但是不包括属性注入
src/com/plf/bean/DefaultListableBeanFactory.java:72
↓ 1 callersMethodparseBeanDefine
解析bean标签 @param element @return
src/com/plf/utils/XmlUtil.java:96
↓ 1 callersMethodreadAppXml
readXml2 @param fileName @param beanDefines
src/com/plf/utils/XmlUtil.java:34
↓ 1 callersMethodsetBeanDefines
@param beanDefines the beanDefines to set
src/com/plf/bean/ApplicationXmlResult.java:49
↓ 1 callersMethodsetBeanProperties
设置成员变量 @param beanDefinition @param bean @param pds @throws IllegalAccessException @throws InvocationTargetException
src/com/plf/bean/DefaultListableBeanFactory.java:135
↓ 1 callersMethodsetComponentScan
@param componentScan the componentScan to set
src/com/plf/bean/ApplicationXmlResult.java:35
↓ 1 callersMethodsetViewName
@param viewName the viewName to set
src/com/plf/servlet/ModelAndView.java:45
MethodBeanDefinition
构造函数 @param id @param className
src/com/plf/bean/BeanDefinition.java:30
MethodClassPathXmlApplicationContext
构造方函数 @param fileName
src/com/plf/context/ClassPathXmlApplicationContext.java:21
MethodModelAndView
()
src/com/plf/servlet/ModelAndView.java:24
MethodPropertyDefinition
(String name, String value, String ref)
src/com/plf/bean/PropertyDefinition.java:20
MethodServletHandler
@param context
src/com/plf/servlet/ServletHandler.java:33
MethodWebApplicationContext
构造方法
src/com/plf/context/WebApplicationContext.java:18
MethodcontextDestroyed
context销毁 @param arg0
src/com/plf/context/ContextLoaderListener.java:52
MethodcontextInitialized
context初始化.
src/com/plf/context/ContextLoaderListener.java:26
Methodconvert
string换为指定type类型 @param value @param type @return
src/test/Test.java:37
MethoddoGet
doGet @param req @param resp @throws ServletException @throws IOException
src/com/plf/servlet/DispatcherServlet.java:54
MethodgetBean
getBean @param name @return
src/com/plf/bean/DefaultListableBeanFactory.java:39
MethodgetBean
getBean @param name @return
src/com/plf/context/AbstractApplicationContext.java:216
MethodgetBeanDefines
@return the beanDefines
src/com/plf/bean/DefaultListableBeanFactory.java:48
MethodgetController
getController @param url @return
src/com/plf/context/AbstractApplicationContext.java:201
MethodgetHandlerMethod
getHandlerMethod @param url @return
src/com/plf/context/AbstractApplicationContext.java:190
MethodgetUserService
@return the userService
src/test/contoller/TestController.java:90
Methodinit
(ServletConfig config)
src/com/plf/servlet/DispatcherServlet.java:33
Methodmain
main @param args @throws Exception
src/test/Test.java:23
Methodrefresh
在spring源码中,refresh方法做了以下事情:<br> 1、刷新上下文; 2、初始化BeanFactory,获取bean工厂,这里会解析XML文件; 3、对BeanFactory的各种功能进行填充,如注解; 4、激活各种BeanFactory处理器; 5、注册拦截Bean创建的Bean处理器
src/com/plf/context/AbstractApplicationContext.java:65
MethodsetAttributes
@param attributes the attributes to set
src/com/plf/servlet/ModelAndView.java:60
MethodsetClassName
@param className the className to set
src/com/plf/bean/BeanDefinition.java:61
MethodsetId
@param id the id to set
src/test/bean/User.java:30
MethodsetId
@param id the id to set
src/com/plf/bean/BeanDefinition.java:46
MethodsetName
@param name the name to set
src/test/bean/User.java:45
MethodsetName
@param name the name to set
src/com/plf/bean/PropertyDefinition.java:37
MethodsetPropertyDefinitions
@param propertyDefinitions the propertyDefinitions to set
src/com/plf/bean/BeanDefinition.java:76
MethodsetRef
@param ref the ref to set
src/com/plf/bean/PropertyDefinition.java:67
MethodsetUser
@param user the user to set
src/test/service/UserService.java:40
MethodsetUserService
@param userService the userService to set
src/test/contoller/TestController.java:98
MethodsetValue
@param value the value to set
src/com/plf/bean/PropertyDefinition.java:52
Methodtest1
测试通过response返回相应 @param request @param response @param param
src/test/contoller/TestController.java:41
Methodtest2
测试返回result字符串 @param request @param response @param param @return
src/test/contoller/TestController.java:62
Methodtest3
测试返回视图 @param request @param response @param param @return
src/test/contoller/TestController.java:75