}
}
for (PortletContainerLifeCycle portletContainerLifeCycle : portletContainerLifeCycles.values())
{
listener.onEvent(new ManagedObjectRemovedEvent(portletContainerLifeCycle));
//
portletApplication.removePortletContainer(portletContainerLifeCycle.portletContainer);
portletContainerLifeCycle.portletContainer.setPortletApplication(null);
portletContainerLifeCycle.portletContainer.setContext(null);
}
//
for (PortletFilterLifeCycle portletFilterLifeCycle : portletFilterLifeCycles.values())
{
listener.onEvent(new ManagedObjectRemovedEvent(portletFilterLifeCycle));
//
portletApplication.removePortletFilter(portletFilterLifeCycle.portletFilter);
portletFilterLifeCycle.portletFilter.setPortletApplication(null);
portletFilterLifeCycle.portletFilter.setContext(null);