CVS: jcontainer/loom/engine/src/java/org/jcontainer/loom/components/monitor DefaultDeploymentMonitor.java,1.12,1.13

Peter Donald <pdonald-yCVjj/[email protected]>
Newsgroups gmane.comp.java.jcontainer.cvs
Message-ID <[email protected]>
Update of /cvsroot/jcontainer/jcontainer/loom/engine/src/java/org/jcontainer/loom/components/monitor
In directory hogshead.codehaus.org:/tmp/cvs-serv22919/engine/src/java/org/jcontainer/loom/components/monitor

Modified Files:
	DefaultDeploymentMonitor.java 
Log Message:
Dont passing in apps/work/etc directorys via ResourceLocator - rather treat them as configuration variables loaded from kernel.xml


Index: DefaultDeploymentMonitor.java
===================================================================
RCS file: /cvsroot/jcontainer/jcontainer/loom/engine/src/java/org/jcontainer/loom/components/monitor/DefaultDeploymentMonitor.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- DefaultDeploymentMonitor.java	29 Oct 2003 21:55:27 -0000	1.12
+++ DefaultDeploymentMonitor.java	29 Oct 2003 22:20:42 -0000	1.13
@@ -131,17 +131,18 @@
         throws ConfigurationException
     {
         m_frequency = configuration.getChild( "scanner-frequency" ).getValueAsLong( 1000L );
+        final String appsDir =
+            configuration.getChild( "base-application-directory" ).getValue();
+        m_appsDir = new File( appsDir );
     }
 
     /**
      * @dna.dependency type="Deployer"
-     * @dna.dependency type="File" qualifier="apps"
      */
     public void compose( final ResourceLocator locator )
         throws MissingResourceException
     {
         m_deployer = (Deployer)locator.lookup( Deployer.class.getName() );
-        m_appsDir = (File)locator.lookup( File.class.getName() + "/apps" );
     }
 
     /**
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.