KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > codehaus > loom > components > assembler > data > Component1


1 /*
2  * Copyright (C) The Loom Group. All rights reserved.
3  *
4  * This software is published under the terms of the Loom
5  * Software License version 1.1, a copy of which has been included
6  * with this distribution in the LICENSE.txt file.
7  */

8 package org.codehaus.loom.components.assembler.data;
9
10 import org.apache.avalon.framework.service.ServiceException;
11 import org.apache.avalon.framework.service.ServiceManager;
12 import org.apache.avalon.framework.service.Serviceable;
13
14 /**
15  * @dna.component
16  */

17 public class Component1
18     implements Serviceable
19 {
20     /**
21      * @dna.dependency type="Service1"
22      */

23     public void service( final ServiceManager manager )
24         throws ServiceException
25     {
26         manager.lookup( Service1.class.getName() );
27     }
28 }
29
Popular Tags