tomcat源码1

Lifecycle:(接口)
    LifecycleBase:abstract:添加,删除Listener,各种init,start,stop,destory
        LifecycleMBeanBase:abstract,注册各种Mbean
            Connector:创建Request,Response
            ContainerBase
            FailedContext
            ManagerBase
            MapperListener
            NamingResources
            RealmBase
            SimpleTcpCluster
            StandardServer
            StandardService
            StandardThreadExecutor
            ValveBase:invoke(Request request, Response response)
            WebappLoader
    WebappClassLoaderBase
    Container:接口
        ContainerBase:abstract
        Context:接口
            FailedContext:
            StandardContext:类
                ReplicatedContext:类
        Engine:
            StandardEngine:类
        Host:
            StandardHost:类
        Wrapper:
            StandardWrapper:类
                ExistingStandardWrapper:类
    Executor:接口
        StandardThreadExecutor:
    Server:接口
        StandardServer:final类
    Service:接口
        StandardService:类
            Embedded:类
ProtocolHandler:接口
    AbstractProtocol<S>:abstract,
        AbstractAjpProtocol<S>:abstract
            AjpAprProtocol:类
            AjpNioProtocol:类
            AjpProtocol:类
        AbstractHttp11Protocol<S>:abstract
            AbstractHttp11JsseProtocol:abstract
                Http11NioProtocol:类
                Http11Protocol:类
            Http11AprProtocol:类
AbstractEndpoint:abstract
    AprEndpoint:类
    JIoEndpoint:
    NioEndpoint:
Pipeline:接口
    StandardPipeline:类,setContainer(Container container)
-----------------------------------------------------------------------------
启动顺序:
StandardServer->StandardService->StandardEngine->Connector->Realm->StandardHost->StandardContext
    

 

posted @ 2017-09-06 14:13  依然是等待  阅读(170)  评论(0编辑  收藏  举报