// log.debug("Starting installation");
//
ContainerInfoBuilderContext builderContext = new ContainerInfoBuilderContextImpl(metaData, webApp);
ContainerInfoBuilder builder = new ContainerInfoBuilder(webApp.getContextPath(), metaData, builderContext);
builder.build();
//
PortletApplicationObject portletApplicationObject = new PortletApplicationImpl(builder.getApplication());
PortletApplicationContextImpl portletApplicationContext = new PortletApplicationContextImpl(webApp);
//
portletApplicationLifeCycle = new PortletApplicationLifeCycle(
listener,
portletApplicationContext,
portletApplicationObject);
// Needed for the managed callbacks
portletApplicationContext.managedPortletApplication = portletApplicationLifeCycle;
//
for (ContainerFilterInfo filterInfo : builder.getApplication().getFilters().values())
{
PortletFilterObject portletFilterObject = new PortletFilterImpl(filterInfo);
PortletFilterContextImpl portletFilterContext = new PortletFilterContextImpl();
//
PortletFilterLifeCycle portletFilterLifeCycle = portletApplicationLifeCycle.addPortletFilter(portletFilterContext, portletFilterObject);
// Needed for the managed callbacks
portletFilterContext.managedPortletFilter = portletFilterLifeCycle;
}
//
for (ContainerPortletInfo containerInfo : builder.getPortlets())
{
PortletContainerObject portletContainerObject = new PortletContainerImpl(containerInfo);
PortletContainerContextImpl portletContainerContext = new PortletContainerContextImpl();
//