PortalDriverServicesImpl.java 文件源码

java
阅读 16 收藏 0 点赞 0 评论 0

项目:portals-pluto 作者:
/**
 * Constructor for passing in the required services and optional container services.
 * @param context
 * @param portletRequestContextService
 * @param eventCoordinationService
 * @param filterManagerService
 * @param portletURLListenerService
 * @param optionalServices Optional services (if this is null, default services are used)
 */
public PortalDriverServicesImpl(PortalContext context,
        PortletRequestContextService portletRequestContextService,
        EventCoordinationService eventCoordinationService,
        FilterManagerService filterManagerService,
        PortletURLListenerService portletURLListenerService,
        OptionalContainerServices optionalServices,
        PortletContextService portletContextService,
        PortletRegistryService portletRegistryService,
        PortalAdministrationService portalAdministrationService)  
{    
    // set required first
    this.context = context;
    this.eventCoordinationService = eventCoordinationService;
    this.portletRequestContextService = portletRequestContextService;
    this.filterManagerService = filterManagerService;
    this.portletURLListenerService = portletURLListenerService;

    // now optional
    if ( optionalServices != null ) {
        ccppProfileService = optionalServices.getCCPPProfileService();
        portletPreferencesService = optionalServices.getPortletPreferencesService();
        portletInvokerService = optionalServices.getPortletInvokerService();
        portletEnvironmentService = optionalServices.getPortletEnvironmentService();
        userInfoService = optionalServices.getUserInfoService();
        namespaceMapper = optionalServices.getNamespaceMapper();
        rdService = optionalServices.getRequestDispatcherService();
    }

    // and finally driver
    this.portletContextService = portletContextService;
    this.portletRegistryService = portletRegistryService;
    this.portalAdministrationService = portalAdministrationService;

    createDefaultServicesIfNeeded();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号