| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- @startuml
- class AnnotationConfigEmbeddedWebApplicationContext extends EmbeddedWebApplicationContext{
- public AnnotationConfigEmbeddedWebApplicationContext();
- protected void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory);
- public final void scan(String... basePackages) ;
- public void setScopeMetadataResolver(ScopeMetadataResolver scopeMetadataResolver);
- }
- class EmbeddedWebApplicationContext extends GenericWebApplicationContext{
- protected void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory);
- public final void refresh();
- protected void onRefresh();
- protected void finishRefresh();
- private void createEmbeddedServletContainer();
- protected EmbeddedServletContainerFactory getEmbeddedServletContainerFactory();
- }
- class GenericWebApplicationContext extends GenericApplicationContext implements ConfigurableWebApplicationContext, ThemeSource{
- public void setServletContext(ServletContext servletContext);
- public ServletContext getServletContext();
- protected ConfigurableEnvironment createEnvironment();
- protected void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory);
- protected Resource getResourceByPath(String path);
- protected void onRefresh();
- public String[] getConfigLocations();
- }
- class GenericApplicationContext extends AbstractApplicationContext implements BeanDefinitionRegistry{
- public Resource getResource(String location);
- public final ConfigurableListableBeanFactory getBeanFactory();
- }
- class AbstractApplicationContext extends DefaultResourceLoader implements ConfigurableApplicationContext, DisposableBean{
- public void publishEvent(ApplicationEvent event);
- public void addBeanFactoryPostProcessor(BeanFactoryPostProcessor postProcessor);
- public void addApplicationListener(ApplicationListener<?> listener);
- public void refresh() ;
- }
- class DefaultResourceLoader implements ResourceLoader{
- public Resource getResource(String location) ;
- protected Resource getResourceByPath(String path);
- }
- interface ConfigurableWebApplicationContext extends ConfigurableApplicationContext,WebApplicationContext{
- void setServletContext(ServletContext servletContext);
- void setServletConfig(ServletConfig servletConfig);
- void setConfigLocation(String configLocation);
- String[] getConfigLocations();
- }
- interface ApplicationContext extends HierarchicalBeanFactory,MessageSource,ApplicationEventPublisher,ResourcePatternResolver{
- String getId();
- String getApplicationName();
- String getDisplayName();
- long getStartupDate();
- ApplicationContext getParent();
- AutowireCapableBeanFactory getAutowireCapableBeanFactory() throws IllegalStateException;
- }
- interface ConfigurableApplicationContext{
- }
- interface Lifecycle{
- }
- interface Closeable{
- public void close() throws IOException;
- }
- interface EnvironmentCapable{
- Environment getEnvironment();
- }
- interface ListableBeanFactory extends BeanFactory{
- String[] getBeanNamesForType(ResolvableType type);
- }
- interface BeanFactory{
- Object getBean(String name) throws BeansException;
- <T> T getBean(String name, Class<T> requiredType) throws BeansException;
- <T> T getBean(Class<T> requiredType) throws BeansException;
- }
- interface HierarchicalBeanFactory extends BeanFactory{
- BeanFactory getParentBeanFactory();
- }
- interface MessageSource{
- String getMessage(String code, Object[] args, String defaultMessage, Locale locale);
- }
- interface ApplicationEventPublisher{
- void publishEvent(ApplicationEvent event);
- }
- interface ResourcePatternResolver extends ResourceLoader{
- Resource[] getResources(String locationPattern) throws IOException;
- }
- interface ResourceLoader{
- Resource getResource(String location);
- ClassLoader getClassLoader();
- }
- ApplicationContext <|-- ConfigurableApplicationContext : 继承关系
- Lifecycle <|-- ConfigurableApplicationContext : 继承关系
- Closeable <|-- ConfigurableApplicationContext : 继承关系
- EnvironmentCapable <|-- ApplicationContext:继承关系
- ListableBeanFactory <|-- ApplicationContext:继承关系
- @enduml
|