Author: chris.laprun(a)jboss.com
Date: 2011-09-27 03:27:45 -0400 (Tue, 27 Sep 2011)
New Revision: 7512
Modified:
components/pc/trunk/portlet/src/main/java/org/gatein/pc/portlet/impl/deployment/PortletApplicationDeployer.java
Log:
- GTNPC-72: expose schema validation switch on PortletApplicationDeployer so that it can
be enabled/disabled in GateIn.
Modified:
components/pc/trunk/portlet/src/main/java/org/gatein/pc/portlet/impl/deployment/PortletApplicationDeployer.java
===================================================================
---
components/pc/trunk/portlet/src/main/java/org/gatein/pc/portlet/impl/deployment/PortletApplicationDeployer.java 2011-09-27
06:12:04 UTC (rev 7511)
+++
components/pc/trunk/portlet/src/main/java/org/gatein/pc/portlet/impl/deployment/PortletApplicationDeployer.java 2011-09-27
07:27:45 UTC (rev 7512)
@@ -22,11 +22,10 @@
******************************************************************************/
package org.gatein.pc.portlet.impl.deployment;
+import org.gatein.common.io.IOTools;
import org.gatein.common.logging.Logger;
-import org.gatein.common.io.IOTools;
import org.gatein.common.logging.LoggerFactory;
import org.gatein.pc.api.PortletInvoker;
-import org.gatein.pc.portlet.impl.deployment.staxnav.PortletApplicationMetaDataBuilder;
import org.gatein.pc.portlet.container.ContainerPortletInvoker;
import org.gatein.pc.portlet.container.PortletContainer;
import org.gatein.pc.portlet.container.managed.LifeCycleStatus;
@@ -40,6 +39,7 @@
import org.gatein.pc.portlet.container.managed.PortletApplicationRegistry;
import org.gatein.pc.portlet.impl.container.PortletApplicationLifeCycle;
import org.gatein.pc.portlet.impl.container.PortletContainerLifeCycle;
+import org.gatein.pc.portlet.impl.deployment.staxnav.PortletApplicationMetaDataBuilder;
import org.gatein.pc.portlet.impl.metadata.PortletApplication10MetaData;
import org.gatein.wci.ServletContainer;
import org.gatein.wci.ServletContainerFactory;
@@ -47,7 +47,6 @@
import org.gatein.wci.WebAppEvent;
import org.gatein.wci.WebAppLifeCycleEvent;
import org.gatein.wci.WebAppListener;
-import org.staxnav.ValueType;
import java.io.InputStream;
import java.net.MalformedURLException;
@@ -89,6 +88,18 @@
/** . */
private ManagedObjectRegistryEventBroadcaster broadcaster;
+ private boolean schemaValidated;
+
+ public boolean isSchemaValidated()
+ {
+ return schemaValidated;
+ }
+
+ public void setSchemaValidated(boolean schemaValidated)
+ {
+ this.schemaValidated = schemaValidated;
+ }
+
public PortletApplicationRegistry getRegistry()
{
return registry;
@@ -255,6 +266,7 @@
//
PortletApplicationMetaDataBuilder builder = new
PortletApplicationMetaDataBuilder();
+ builder.setSchemaValidation(schemaValidated);
//
return builder.build(in);
Show replies by date