protected void notify(PortletInvocationEvent event, boolean pre, Throwable e) { ContainerInvocation inv = containerInvocationService.getInvocation(); PortalAdministrationService pas = inv.getPortletContainer() .getOptionalContainerServices() .getPortalAdministrationService(); Iterator<PortletInvocationListener> i = pas.getPortletInvocationListeners().iterator(); while (i.hasNext()) { PortletInvocationListener listener = i.next(); if (pre) { listener.onBegin(event); } else if (e == null) { listener.onEnd(event); } else { listener.onError(event, e); } } }
PortalAdministrationService pas = inv.getPortletContainer() .getOptionalContainerServices() .getPortalAdministrationService();