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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]