avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject svn commit: rev 20946 - in avalon/trunk/runtime/meta/test/testd: . src src/main src/main/org src/main/org/apache src/main/org/apache/avalon src/main/org/apache/avalon/test src/main/org/apache/avalon/test/testd
Date Wed, 09 Jun 2004 13:17:40 GMT
Author: mcconnell
Date: Wed Jun  9 06:17:39 2004
New Revision: 20946

Added:
   avalon/trunk/runtime/meta/test/testd/
   avalon/trunk/runtime/meta/test/testd/build.properties   (contents, props changed)
   avalon/trunk/runtime/meta/test/testd/build.xml   (contents, props changed)
   avalon/trunk/runtime/meta/test/testd/src/
   avalon/trunk/runtime/meta/test/testd/src/main/
   avalon/trunk/runtime/meta/test/testd/src/main/org/
   avalon/trunk/runtime/meta/test/testd/src/main/org/apache/
   avalon/trunk/runtime/meta/test/testd/src/main/org/apache/avalon/
   avalon/trunk/runtime/meta/test/testd/src/main/org/apache/avalon/test/
   avalon/trunk/runtime/meta/test/testd/src/main/org/apache/avalon/test/testd/
   avalon/trunk/runtime/meta/test/testd/src/main/org/apache/avalon/test/testd/D.java   (contents,
props changed)
   avalon/trunk/runtime/meta/test/testd/src/main/org/apache/avalon/test/testd/TestD.java 
 (contents, props changed)
Log:
add testd package

Added: avalon/trunk/runtime/meta/test/testd/build.properties
==============================================================================
--- (empty file)
+++ avalon/trunk/runtime/meta/test/testd/build.properties	Wed Jun  9 06:17:39 2004
@@ -0,0 +1,2 @@
+project.name = avalon-test-testd
+project.home = ../../../../central/system

Added: avalon/trunk/runtime/meta/test/testd/build.xml
==============================================================================
--- (empty file)
+++ avalon/trunk/runtime/meta/test/testd/build.xml	Wed Jun  9 06:17:39 2004
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<project name="avalon-test-testd" default="dist" basedir="." 
+    xmlns:x="antlib:org.apache.avalon.tools"
+    xmlns:m="plugin:avalon/meta/avalon-meta-tools">
+
+  <property file="build.properties"/>
+  <import file="${project.home}/build/standard.xml"/>
+
+  <target name="build" depends="standard.build">
+    <m:meta destDir="${basedir}/target/classes">
+      <fileset dir="${basedir}/src/main">
+        <include name="**/*.java"/>
+      </fileset>
+    </m:meta>
+  </target>
+
+</project>

Added: avalon/trunk/runtime/meta/test/testd/src/main/org/apache/avalon/test/testd/D.java
==============================================================================
--- (empty file)
+++ avalon/trunk/runtime/meta/test/testd/src/main/org/apache/avalon/test/testd/D.java	Wed
Jun  9 06:17:39 2004
@@ -0,0 +1,22 @@
+/* 
+ * Copyright 2004 Apache Software Foundation
+ * Licensed  under the  Apache License,  Version 2.0  (the "License");
+ * you may not use  this file  except in  compliance with the License.
+ * You may obtain a copy of the License at 
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed  under the  License is distributed on an "AS IS" BASIS,
+ * WITHOUT  WARRANTIES OR CONDITIONS  OF ANY KIND, either  express  or
+ * implied.
+ * 
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.avalon.test.testd;
+
+public interface D
+{
+}

Added: avalon/trunk/runtime/meta/test/testd/src/main/org/apache/avalon/test/testd/TestD.java
==============================================================================
--- (empty file)
+++ avalon/trunk/runtime/meta/test/testd/src/main/org/apache/avalon/test/testd/TestD.java
Wed Jun  9 06:17:39 2004
@@ -0,0 +1,49 @@
+/* 
+ * Copyright 2004 Apache Software Foundation
+ * Licensed  under the  Apache License,  Version 2.0  (the "License");
+ * you may not use  this file  except in  compliance with the License.
+ * You may obtain a copy of the License at 
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed  under the  License is distributed on an "AS IS" BASIS,
+ * WITHOUT  WARRANTIES OR CONDITIONS  OF ANY KIND, either  express  or
+ * implied.
+ * 
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.avalon.test.testd;
+
+import org.apache.avalon.framework.activity.Initializable;
+import org.apache.avalon.framework.logger.AbstractLogEnabled;
+import org.apache.avalon.framework.logger.Logger;
+import org.apache.avalon.framework.service.Serviceable;
+import org.apache.avalon.framework.service.ServiceManager;
+import org.apache.avalon.framework.service.ServiceException;
+
+/**
+ * @avalon.component name="component-d" lifestyle="singleton"
+ */
+public class TestD extends AbstractLogEnabled
+  implements Initializable, Serviceable, D
+{
+    public void initialize() throws Exception
+    {
+        getLogger().info( "hello from D" );
+    }
+
+   /**
+    * @avalon.dependency key= "a" type="org.apache.avalon.test.testa.A"
+    */
+    public void service( ServiceManager manager ) throws ServiceException
+    {
+        getLogger().info( "service stage" );
+        Logger logger = getLogger().getChildLogger( "service" );
+        logger.info( "lookup A" );
+        manager.lookup( "a" );
+        logger.info( "ok" );
+    }
+}

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message