# 程序包org.springframework.context的分层结构

程序包分层结构:

- 所有程序包

## 类分层结构

- java.lang.Object
  - java.util.EventObject (implements java.io.Serializable)
    - org.springframework.context.ApplicationEvent
      - org.springframework.context.PayloadApplicationEvent<T> (implements org.springframework.core.ResolvableTypeProvider)
  - java.lang.Throwable (implements java.io.Serializable)
    - java.lang.Exception
      - java.lang.RuntimeException
        - org.springframework.core.NestedRuntimeException
          - org.springframework.beans.BeansException
            - org.springframework.beans.FatalBeanException
              - org.springframework.context.ApplicationContextException
        - org.springframework.context.NoSuchMessageException

## 接口分层结构

- org.springframework.context.ApplicationContextInitializer<C>
- org.springframework.context.ApplicationEventPublisher
  - org.springframework.context.ApplicationContext (并 extends org.springframework.core.env.EnvironmentCapable, org.springframework.beans.factory.HierarchicalBeanFactory, org.springframework.beans.factory.ListableBeanFactory, org.springframework.context.MessageSource, org.springframework.core.io.support.ResourcePatternResolver)
    - org.springframework.context.ConfigurableApplicationContext (并 extends java.io.Closeable, org.springframework.context.Lifecycle)
- java.lang.AutoCloseable
  - java.io.Closeable
    - org.springframework.context.ConfigurableApplicationContext (并 extends org.springframework.context.ApplicationContext, org.springframework.context.Lifecycle)
- org.springframework.beans.factory.Aware
  - org.springframework.context.ApplicationContextAware
  - org.springframework.context.ApplicationEventPublisherAware
  - org.springframework.context.EmbeddedValueResolverAware
  - org.springframework.context.EnvironmentAware
  - org.springframework.context.MessageSourceAware
  - org.springframework.context.ResourceLoaderAware
- org.springframework.beans.factory.BeanFactory
  - org.springframework.beans.factory.HierarchicalBeanFactory
    - org.springframework.context.ApplicationContext (并 extends org.springframework.context.ApplicationEventPublisher, org.springframework.core.env.EnvironmentCapable, org.springframework.beans.factory.ListableBeanFactory, org.springframework.context.MessageSource, org.springframework.core.io.support.ResourcePatternResolver)
      - org.springframework.context.ConfigurableApplicationContext (并 extends java.io.Closeable, org.springframework.context.Lifecycle)
  - org.springframework.beans.factory.ListableBeanFactory
    - org.springframework.context.ApplicationContext (并 extends org.springframework.context.ApplicationEventPublisher, org.springframework.core.env.EnvironmentCapable, org.springframework.beans.factory.HierarchicalBeanFactory, org.springframework.context.MessageSource, org.springframework.core.io.support.ResourcePatternResolver)
      - org.springframework.context.ConfigurableApplicationContext (并 extends java.io.Closeable, org.springframework.context.Lifecycle)
- org.springframework.core.env.EnvironmentCapable
  - org.springframework.context.ApplicationContext (并 extends org.springframework.context.ApplicationEventPublisher, org.springframework.beans.factory.HierarchicalBeanFactory, org.springframework.beans.factory.ListableBeanFactory, org.springframework.context.MessageSource, org.springframework.core.io.support.ResourcePatternResolver)
    - org.springframework.context.ConfigurableApplicationContext (并 extends java.io.Closeable, org.springframework.context.Lifecycle)
- java.util.EventListener
  - org.springframework.context.ApplicationListener<E>
- org.springframework.context.Lifecycle
  - org.springframework.context.ConfigurableApplicationContext (并 extends org.springframework.context.ApplicationContext, java.io.Closeable)
  - org.springframework.context.LifecycleProcessor
  - org.springframework.context.SmartLifecycle (并 extends org.springframework.context.Phased)
- org.springframework.context.MessageSource
  - org.springframework.context.ApplicationContext (并 extends org.springframework.context.ApplicationEventPublisher, org.springframework.core.env.EnvironmentCapable, org.springframework.beans.factory.HierarchicalBeanFactory, org.springframework.beans.factory.ListableBeanFactory, org.springframework.core.io.support.ResourcePatternResolver)
    - org.springframework.context.ConfigurableApplicationContext (并 extends java.io.Closeable, org.springframework.context.Lifecycle)
  - org.springframework.context.HierarchicalMessageSource
- org.springframework.context.MessageSourceResolvable
- org.springframework.context.Phased
  - org.springframework.context.SmartLifecycle (并 extends org.springframework.context.Lifecycle)
- org.springframework.core.io.ResourceLoader
  - org.springframework.core.io.support.ResourcePatternResolver
    - org.springframework.context.ApplicationContext (并 extends org.springframework.context.ApplicationEventPublisher, org.springframework.core.env.EnvironmentCapable, org.springframework.beans.factory.HierarchicalBeanFactory, org.springframework.beans.factory.ListableBeanFactory, org.springframework.context.MessageSource)
      - org.springframework.context.ConfigurableApplicationContext (并 extends java.io.Closeable, org.springframework.context.Lifecycle)