User: starksm
Date: 01/06/14 16:44:31
Modified: src/main/org/jboss/ejb ContainerFactory.java
ContainerFactoryMBean.java
Log:
Added support for validating j2ee descriptor DTDs
Revision Changes Path
1.76 +27 -2 jboss/src/main/org/jboss/ejb/ContainerFactory.java
Index: ContainerFactory.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/ContainerFactory.java,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -r1.75 -r1.76
--- ContainerFactory.java 2001/06/13 04:49:58 1.75
+++ ContainerFactory.java 2001/06/14 23:44:31 1.76
@@ -82,7 +82,7 @@
* @author Peter Antman ([EMAIL PROTECTED])
* @author Scott Stark([EMAIL PROTECTED])
*
-* @version $Revision: 1.75 $
+* @version $Revision: 1.76 $
*/
public class ContainerFactory
extends org.jboss.util.ServiceMBeanSupport
@@ -117,6 +117,8 @@
boolean metricsEnabled = false;
/* Enable JMS monitoring of the bean cache */
private boolean m_beanCacheJMSMonitoring;
+ // A flag indicating if deployment descriptors should be validated
+ private boolean validateDTDs;
// Public --------------------------------------------------------
@@ -257,6 +259,23 @@
m_beanCacheJMSMonitoring = enable;
}
+ /** Get the flag indicating that ejb-jar.dtd, jboss.dtd &
+ jboss-web.dtd conforming documents should be validated
+ against the DTD.
+ */
+ public boolean getValidateDTDs()
+ {
+ return validateDTDs;
+ }
+ /** Set the flag indicating that ejb-jar.dtd, jboss.dtd &
+ jboss-web.dtd conforming documents should be validated
+ against the DTD.
+ */
+ public void setValidateDTDs(boolean validate)
+ {
+ this.validateDTDs = validate;
+ }
+
/**
* Deploy the file at this URL. This method is typically called from remote
administration
* tools that cannot handle java.net.URL's as parameters to methods
@@ -388,7 +407,7 @@
throws NamingException, Exception
{
// Create a file loader with which to load the files
- XmlFileLoader efm = new XmlFileLoader();
+ XmlFileLoader efm = new XmlFileLoader(validateDTDs);
// the file manager gets its file from the classloader
// create a classloader that to access the metadata
@@ -931,3 +950,9 @@
return ic;
}
}
+
+/* Change log:
+
+* Thu Jun 14 23:28:58 2001 UTC, starksm
+ Added support for validation of the j2ee related deployment descriptors.
+ */
\ No newline at end of file
1.12 +16 -2 jboss/src/main/org/jboss/ejb/ContainerFactoryMBean.java
Index: ContainerFactoryMBean.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/ContainerFactoryMBean.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- ContainerFactoryMBean.java 2001/05/22 05:08:00 1.11
+++ ContainerFactoryMBean.java 2001/06/14 23:44:31 1.12
@@ -15,7 +15,7 @@
* @author Rickard �berg ([EMAIL PROTECTED])
* @author Juha Lindfors ([EMAIL PROTECTED])
*
- * @version $Revision: 1.11 $
+ * @version $Revision: 1.12 $
*/
public interface ContainerFactoryMBean
extends org.jboss.util.ServiceMBean
@@ -119,5 +119,19 @@
* Set the JMS monitoring of the bean cache.
*/
public void setBeanCacheJMSMonitoringEnabled(boolean enable);
-}
+ /** Get the flag indicating that ejb-jar.dtd, jboss.dtd &
+ jboss-web.dtd conforming documents should be validated
+ against the DTD.
+ */
+ public boolean getValidateDTDs();
+ /** Set the flag indicating that ejb-jar.dtd, jboss.dtd &
+ jboss-web.dtd conforming documents should be validated
+ against the DTD.
+ */
+ public void setValidateDTDs(boolean validate);
+}
+/* Change log.
+ * Author: starksm, Date: Thu Jun 14 17:14:14 2001 GMT
+ Added getValidateDTDs/setValidateDTDs methods.
+ */
\ No newline at end of file
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development