Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SeasonPanPan/myspring
/ functions
Functions
72 in github.com/SeasonPanPan/myspring
⨍
Functions
72
◇
Types & classes
19
↓ 8 callers
Method
getName
@return the name
src/com/plf/bean/PropertyDefinition.java:29
↓ 5 callers
Method
getUser
(int id)
src/test/service/UserService.java:20
↓ 5 callers
Method
isNotEmpty
string is not empty @param src @return
src/com/plf/utils/CommonUtis.java:27
↓ 3 callers
Method
getId
@return the id
src/com/plf/bean/BeanDefinition.java:38
↓ 3 callers
Method
getValue
@return the value
src/com/plf/bean/PropertyDefinition.java:44
↓ 2 callers
Method
addPropertyDefinition
addPropertyDefinition @param propertyDefinition
src/com/plf/bean/BeanDefinition.java:85
↓ 2 callers
Method
getBean
通过指定名字获取bean @param name @return
src/com/plf/bean/BeanFactory.java:21
↓ 2 callers
Method
getClassName
@return the className
src/com/plf/bean/BeanDefinition.java:53
↓ 2 callers
Method
getHandlerMethod
getHandlerMethod @param url @return
src/com/plf/context/ApplicationContext.java:33
↓ 2 callers
Method
getRef
@return the ref
src/com/plf/bean/PropertyDefinition.java:59
↓ 2 callers
Method
getSigletons
@return the sigletons
src/com/plf/bean/DefaultListableBeanFactory.java:64
↓ 2 callers
Method
refresh
启动核心方法,初始化bean/context都在这里实现。<br> 注:实际spring的这个方法在ConfigurableApplicationContext中 @throws Exception
src/com/plf/context/ApplicationContext.java:25
↓ 1 callers
Method
addBeanDefines
addBeanDefines @param beanDefines
src/com/plf/bean/DefaultListableBeanFactory.java:57
↓ 1 callers
Method
addObject
添加模型数据 @param attributeName @param attributeValue
src/com/plf/servlet/ModelAndView.java:70
↓ 1 callers
Method
beanSetInvoke
反射调用,设置字段 @param bean @param propertyDefinition @param propertyDescriptor @throws IllegalAccessException @throws InvocationTargetException
src/com/plf/bean/DefaultListableBeanFactory.java:165
↓ 1 callers
Method
convert
string换为指定type类型 @param value @param type @return
src/com/plf/utils/CommonUtis.java:58
↓ 1 callers
Method
doDispatch
@param req @param resp @throws Exception
src/com/plf/servlet/DispatcherServlet.java:71
↓ 1 callers
Method
doPost
(HttpServletRequest req, HttpServletResponse resp)
src/com/plf/servlet/DispatcherServlet.java:59
↓ 1 callers
Method
doScanner
扫描 指定目录下的文件 @param packageName
src/com/plf/context/AbstractApplicationContext.java:102
↓ 1 callers
Method
getAttributes
@return the attributes
src/com/plf/servlet/ModelAndView.java:52
↓ 1 callers
Method
getBeanDefines
@return the beanDefines
src/com/plf/bean/ApplicationXmlResult.java:42
↓ 1 callers
Method
getComponentScan
@return the componentScan
src/com/plf/bean/ApplicationXmlResult.java:28
↓ 1 callers
Method
getController
getController @param url @return
src/com/plf/context/ApplicationContext.java:41
↓ 1 callers
Method
getId
@return the id
src/test/bean/User.java:22
↓ 1 callers
Method
getName
@return the name
src/test/bean/User.java:37
↓ 1 callers
Method
getPropertyDefinitions
@return the propertyDefinitions
src/com/plf/bean/BeanDefinition.java:68
↓ 1 callers
Method
getViewName
@return the viewName
src/com/plf/servlet/ModelAndView.java:37
↓ 1 callers
Method
handle
handle @param context @param req @param resp @throws Exception
src/com/plf/servlet/ServletHandler.java:45
↓ 1 callers
Method
handleObjectResult
直接返回数据 @param data @param resp @throws IOException
src/com/plf/servlet/ServletHandler.java:139
↓ 1 callers
Method
handleViewResult
视图处理 @param view @param req @param resp @throws IOException @throws ServletException
src/com/plf/servlet/ServletHandler.java:115
↓ 1 callers
Method
initScanAnnotation
扫描注解 @param className
src/com/plf/context/AbstractApplicationContext.java:127
↓ 1 callers
Method
injectObject
为bean对象的属性注入值 Administer 2013-8-18 下午7:59:03
src/com/plf/bean/DefaultListableBeanFactory.java:98
↓ 1 callers
Method
instanceBeans
实例化bean,但是不包括属性注入
src/com/plf/bean/DefaultListableBeanFactory.java:72
↓ 1 callers
Method
parseBeanDefine
解析bean标签 @param element @return
src/com/plf/utils/XmlUtil.java:96
↓ 1 callers
Method
readAppXml
readXml2 @param fileName @param beanDefines
src/com/plf/utils/XmlUtil.java:34
↓ 1 callers
Method
setBeanDefines
@param beanDefines the beanDefines to set
src/com/plf/bean/ApplicationXmlResult.java:49
↓ 1 callers
Method
setBeanProperties
设置成员变量 @param beanDefinition @param bean @param pds @throws IllegalAccessException @throws InvocationTargetException
src/com/plf/bean/DefaultListableBeanFactory.java:135
↓ 1 callers
Method
setComponentScan
@param componentScan the componentScan to set
src/com/plf/bean/ApplicationXmlResult.java:35
↓ 1 callers
Method
setViewName
@param viewName the viewName to set
src/com/plf/servlet/ModelAndView.java:45
Method
BeanDefinition
构造函数 @param id @param className
src/com/plf/bean/BeanDefinition.java:30
Method
ClassPathXmlApplicationContext
构造方函数 @param fileName
src/com/plf/context/ClassPathXmlApplicationContext.java:21
Method
ModelAndView
()
src/com/plf/servlet/ModelAndView.java:24
Method
PropertyDefinition
(String name, String value, String ref)
src/com/plf/bean/PropertyDefinition.java:20
Method
ServletHandler
@param context
src/com/plf/servlet/ServletHandler.java:33
Method
WebApplicationContext
构造方法
src/com/plf/context/WebApplicationContext.java:18
Method
contextDestroyed
context销毁 @param arg0
src/com/plf/context/ContextLoaderListener.java:52
Method
contextInitialized
context初始化.
src/com/plf/context/ContextLoaderListener.java:26
Method
convert
string换为指定type类型 @param value @param type @return
src/test/Test.java:37
Method
doGet
doGet @param req @param resp @throws ServletException @throws IOException
src/com/plf/servlet/DispatcherServlet.java:54
Method
getBean
getBean @param name @return
src/com/plf/bean/DefaultListableBeanFactory.java:39
Method
getBean
getBean @param name @return
src/com/plf/context/AbstractApplicationContext.java:216
Method
getBeanDefines
@return the beanDefines
src/com/plf/bean/DefaultListableBeanFactory.java:48
Method
getController
getController @param url @return
src/com/plf/context/AbstractApplicationContext.java:201
Method
getHandlerMethod
getHandlerMethod @param url @return
src/com/plf/context/AbstractApplicationContext.java:190
Method
getUserService
@return the userService
src/test/contoller/TestController.java:90
Method
init
(ServletConfig config)
src/com/plf/servlet/DispatcherServlet.java:33
Method
main
main @param args @throws Exception
src/test/Test.java:23
Method
refresh
在spring源码中,refresh方法做了以下事情:<br> 1、刷新上下文; 2、初始化BeanFactory,获取bean工厂,这里会解析XML文件; 3、对BeanFactory的各种功能进行填充,如注解; 4、激活各种BeanFactory处理器; 5、注册拦截Bean创建的Bean处理器
src/com/plf/context/AbstractApplicationContext.java:65
Method
setAttributes
@param attributes the attributes to set
src/com/plf/servlet/ModelAndView.java:60
Method
setClassName
@param className the className to set
src/com/plf/bean/BeanDefinition.java:61
Method
setId
@param id the id to set
src/test/bean/User.java:30
Method
setId
@param id the id to set
src/com/plf/bean/BeanDefinition.java:46
Method
setName
@param name the name to set
src/test/bean/User.java:45
Method
setName
@param name the name to set
src/com/plf/bean/PropertyDefinition.java:37
Method
setPropertyDefinitions
@param propertyDefinitions the propertyDefinitions to set
src/com/plf/bean/BeanDefinition.java:76
Method
setRef
@param ref the ref to set
src/com/plf/bean/PropertyDefinition.java:67
Method
setUser
@param user the user to set
src/test/service/UserService.java:40
Method
setUserService
@param userService the userService to set
src/test/contoller/TestController.java:98
Method
setValue
@param value the value to set
src/com/plf/bean/PropertyDefinition.java:52
Method
test1
测试通过response返回相应 @param request @param response @param param
src/test/contoller/TestController.java:41
Method
test2
测试返回result字符串 @param request @param response @param param @return
src/test/contoller/TestController.java:62
Method
test3
测试返回视图 @param request @param response @param param @return
src/test/contoller/TestController.java:75