Skip to content
This repository has been archived by the owner on Apr 8, 2019. It is now read-only.

Commit

Permalink
Add PortletFilter and PortletApplication retrieval on Managed types, …
Browse files Browse the repository at this point in the history
…and create protected method to create portlet application to enable overriding it.
  • Loading branch information
kenfinnigan committed Apr 3, 2013
1 parent 8784966 commit 2ea56c7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
******************************************************************************/
package org.gatein.pc.portlet.container.managed;

import org.gatein.pc.portlet.container.PortletApplication;

/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @version $Revision: 630 $
Expand All @@ -41,4 +43,5 @@ public interface ManagedPortletApplication extends ManagedObject

ManagedPortletFilter getManagedPortletFilter(String portletFilterId);

PortletApplication getPortletApplication();
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
******************************************************************************/
package org.gatein.pc.portlet.container.managed;

import org.gatein.pc.portlet.container.PortletFilter;

/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @version $Revision: 630 $
Expand All @@ -33,4 +35,5 @@ public interface ManagedPortletFilter extends ManagedObject

ManagedPortletApplication getManagedPortletApplication();

PortletFilter getPortletFilter();
}
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public final PortletApplicationDeployment add(ServletContext webApp) throws Depl
PortletApplication10MetaData metaData = buildPortletApplicationMetaData(webApp);
if (metaData != null)
{
PortletApplicationDeployment deployment = new PortletApplicationDeployment(broadcaster, webApp, metaData);
PortletApplicationDeployment deployment = createPortletApplicationDeployment(webApp, metaData);
deploymentMap.put(webApp.getContextPath(), deployment);
deployment.install();

Expand Down Expand Up @@ -222,6 +222,9 @@ public final void remove(ServletContext webApp)
}
}

protected PortletApplicationDeployment createPortletApplicationDeployment(ServletContext webApp, PortletApplication10MetaData metaData) {
return new PortletApplicationDeployment(broadcaster, webApp, metaData);
}

protected PortletApplication10MetaData buildPortletApplicationMetaData(ServletContext webApp) throws DeploymentException
{
Expand Down

0 comments on commit 2ea56c7

Please sign in to comment.