public void activate ( ComponentContext compcontext , Map < String , Object > properties ) { String methodName = "activate" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Activating the WebContainer bundle" ) ; } WebContainer . instance . set ( this ) ; this . context = compcontext ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName , "Default Port [ " + DEFAULT_PORT + " ]" ) ; Tr . debug ( tc , methodName , "Default Virtual Host [ " + DEFAULT_VHOST_NAME + " ]" ) ; } WebContainerConfiguration webconfig = new WebContainerConfiguration ( DEFAULT_PORT ) ; webconfig . setDefaultVirtualHostName ( DEFAULT_VHOST_NAME ) ; this . initialize ( webconfig , properties ) ; this . classLoadingSRRef . activate ( context ) ; this . sessionHelperSRRef . activate ( context ) ; this . cacheManagerSRRef . activate ( context ) ; this . injectionEngineSRRef . activate ( context ) ; this . managedObjectServiceSRRef . activate ( context ) ; this . servletContainerInitializers . activate ( context ) ; this . transferContextServiceRef . activate ( context ) ; this . webMBeanRuntimeServiceRef . activate ( context ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Object mbeanService = context . locateService ( REFERENCE_WEB_MBEAN_RUNTIME ) ; Tr . debug ( tc , methodName , "Web MBean Runtime [ " + mbeanService + " ]" ) ; Tr . debug ( tc , methodName , "Web MBean Runtime Reference [ " + webMBeanRuntimeServiceRef . getReference ( ) + " ]" ) ; Tr . debug ( tc , methodName , "Web MBean Runtime Service [ " + webMBeanRuntimeServiceRef . getService ( ) + " ]" ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName , "Posting STARTED_EVENT" ) ; } Event event = this . eventService . createEvent ( WebContainerConstants . STARTED_EVENT ) ; this . eventService . postEvent ( event ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName , "Posted STARTED_EVENT" ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName , "Activating the WebContainer bundle: Complete" ) ; } }
Activate the web container as a DS component .