[jboss-cvs] JBossAS SVN: r62109 - projects/microcontainer/branches/2_0/deployers/src/main/org/jboss/deployers/plugins/deployers/helpers.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Apr 4 22:04:56 EDT 2007
Author: scott.stark at jboss.org
Date: 2007-04-04 22:04:56 -0400 (Wed, 04 Apr 2007)
New Revision: 62109
Modified:
projects/microcontainer/branches/2_0/deployers/src/main/org/jboss/deployers/plugins/deployers/helpers/ObjectModelFactoryDeployer.java
Log:
JBMICROCONT-169, add a useValidation property
Modified: projects/microcontainer/branches/2_0/deployers/src/main/org/jboss/deployers/plugins/deployers/helpers/ObjectModelFactoryDeployer.java
===================================================================
--- projects/microcontainer/branches/2_0/deployers/src/main/org/jboss/deployers/plugins/deployers/helpers/ObjectModelFactoryDeployer.java 2007-04-05 01:39:16 UTC (rev 62108)
+++ projects/microcontainer/branches/2_0/deployers/src/main/org/jboss/deployers/plugins/deployers/helpers/ObjectModelFactoryDeployer.java 2007-04-05 02:04:56 UTC (rev 62109)
@@ -47,6 +47,8 @@
private static final UnmarshallerFactory factory = UnmarshallerFactory.newInstance();
/** Whether the Unmarshaller will use schema validation */
private boolean useSchemaValidation = true;
+ /** Whether the Unmarshaller will use validation */
+ private boolean useValidation = true;
/**
* Create a new SchemaResolverDeployer.
@@ -69,6 +71,16 @@
this.useSchemaValidation = useSchemaValidation;
}
+ public boolean isUseValidation()
+ {
+ return useValidation;
+ }
+
+ public void setUseValidation(boolean useValidation)
+ {
+ this.useValidation = useValidation;
+ }
+
/**
* Parse a deployment. The entails obtaining the metadata file contents via
* its URL handler, creating a jbossxb Unmarshaller, and unmarshalling the
@@ -89,6 +101,7 @@
Unmarshaller unmarshaller = factory.newUnmarshaller();
unmarshaller.setSchemaValidation(useSchemaValidation);
+ unmarshaller.setValidation(useValidation);
Object parsed = null;
try
{
More information about the jboss-cvs-commits
mailing list