public EventProviderImpl( IPortletWindow portletWindow, PortletContextService portletContextService) { this.portletWindow = portletWindow; final PortletDefinition portletDefinition = portletWindow.getPlutoPortletWindow().getPortletDefinition(); final PortletApplicationDefinition application = portletDefinition.getApplication(); final String portletApplicationName = application.getName(); try { this.portletClassLoader = portletContextService.getClassLoader(portletApplicationName); } catch (PortletContainerException e) { throw new IllegalStateException( "Failed to find ClassLoader for portlet applicaiton: " + portletApplicationName, e); } }
public EventProviderImpl( IPortletWindow portletWindow, PortletContextService portletContextService) { this.portletWindow = portletWindow; final PortletDefinition portletDefinition = portletWindow.getPlutoPortletWindow().getPortletDefinition(); final PortletApplicationDefinition application = portletDefinition.getApplication(); final String portletApplicationName = application.getName(); try { this.portletClassLoader = portletContextService.getClassLoader(portletApplicationName); } catch (PortletContainerException e) { throw new IllegalStateException( "Failed to find ClassLoader for portlet applicaiton: " + portletApplicationName, e); } }
ClassLoader loader = portletContextService.getClassLoader(portletWindow.getPortletDefinition().getApplication().getName()); Class<? extends Serializable> clazz = loader.loadClass(eventDefinitionDD.getValueType()).asSubclass(Serializable.class);
.getClassLoader(portletWindow.getPortletDefinition() .getApplication().getName()); Class<? extends Serializable> clazz = loader.loadClass(
loader = portletContextService.getClassLoader(portletApplicationName); } catch (PortletContainerException e) { throw new IllegalStateException(