[jboss-cvs] JBossAS SVN: r61890 - projects/microcontainer/trunk/deployers/src/main/org/jboss/deployers/plugins/deployers/helpers.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Mar 30 11:11:19 EDT 2007
Author: scott.stark at jboss.org
Date: 2007-03-30 11:11:19 -0400 (Fri, 30 Mar 2007)
New Revision: 61890
Modified:
projects/microcontainer/trunk/deployers/src/main/org/jboss/deployers/plugins/deployers/helpers/ObjectModelFactoryDeployer.java
Log:
JBMICROCONT-169, add a schema validation flag
Modified: projects/microcontainer/trunk/deployers/src/main/org/jboss/deployers/plugins/deployers/helpers/ObjectModelFactoryDeployer.java
===================================================================
--- projects/microcontainer/trunk/deployers/src/main/org/jboss/deployers/plugins/deployers/helpers/ObjectModelFactoryDeployer.java 2007-03-30 15:02:11 UTC (rev 61889)
+++ projects/microcontainer/trunk/deployers/src/main/org/jboss/deployers/plugins/deployers/helpers/ObjectModelFactoryDeployer.java 2007-03-30 15:11:19 UTC (rev 61890)
@@ -45,7 +45,9 @@
{
/** Unmarshaller factory */
private static final UnmarshallerFactory factory = UnmarshallerFactory.newInstance();
-
+ /** Whether the Unmarshaller will use schema validation */
+ private boolean useSchemaValidation = true;
+
/**
* Create a new SchemaResolverDeployer.
*
@@ -57,6 +59,16 @@
super(deploymentType);
}
+ public boolean isUseSchemaValidation()
+ {
+ return useSchemaValidation;
+ }
+
+ public void setUseSchemaValidation(boolean useSchemaValidation)
+ {
+ this.useSchemaValidation = useSchemaValidation;
+ }
+
/**
* Parse a deployment. The entails obtaining the metadata file contents via
* its URL handler, creating a jbossxb Unmarshaller, and unmarshalling the
@@ -75,6 +87,7 @@
throw new IllegalArgumentException("Null file");
Unmarshaller unmarshaller = factory.newUnmarshaller();
+ unmarshaller.setSchemaValidation(useSchemaValidation);
Object parsed = null;
try
{
More information about the jboss-cvs-commits
mailing list