[jboss-cvs] system2/src/main/org/jboss/deployers/plugins/bean ...
Scott Stark
scott.stark at jboss.com
Sun Jul 16 21:32:28 EDT 2006
User: starksm
Date: 06/07/16 21:32:28
Modified: src/main/org/jboss/deployers/plugins/bean BeanDeployer.java
Log:
Add more debug logging
Revision Changes Path
1.7 +10 -2 system2/src/main/org/jboss/deployers/plugins/bean/BeanDeployer.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BeanDeployer.java
===================================================================
RCS file: /cvsroot/jboss/system2/src/main/org/jboss/deployers/plugins/bean/BeanDeployer.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- BeanDeployer.java 12 Jul 2006 09:12:38 -0000 1.6
+++ BeanDeployer.java 17 Jul 2006 01:32:28 -0000 1.7
@@ -36,7 +36,7 @@
*
* @author <a href="mailto:dimitris at jboss.org">Dimitris Andreadis</a>
* @author Scott.Stark at jboss.org
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.7 $
*/
public class BeanDeployer extends AbstractAspectDeployer
{
@@ -110,7 +110,6 @@
boolean isBeanDeployment = false;
String basename = ctx.getFile().getName();
VirtualFile vf = ctx.getFile();
-
if (endsWithOneOfTheSuffixes(basename))
{
isBeanDeployment = true;
@@ -119,6 +118,7 @@
// If the context contains a META-INF/jboss-beans.xml its a beans archive
@SuppressWarnings("unused")
VirtualFile descriptor = vf.findChild(JAR_DESCRIPTOR);
+ log.debug("Found META-INF/jboss-beans.xml: "+descriptor);
ctx.getContextData().put(JAR_DESCRIPTOR, Boolean.TRUE);
// add deployment base to the classpath
ctx.addClasspathEntry("");
@@ -126,12 +126,20 @@
catch(IOException ignore)
{
// The deployment context has no beans descriptor
+ log.debug("No META-INF/jboss-beans.xml, assuming *-beans.xml");
}
}
// Mark this as a bean deployment context
if( isBeanDeployment )
+ {
ctx.addDeploymentType(getType());
+ log.debug("Found beans ctx: "+ctx.getFile());
+ }
+ else
+ {
+ log.debug("Skipping non-beans ctx: "+ctx.getFile());
+ }
return isBeanDeployment;
}
More information about the jboss-cvs-commits
mailing list