Javadoc TagsService TagThe service tag when used within a class declares the ability of the compoent type to export one or more work interfaces. Under class scope a component may declare 0..n service export declarations. When used within an interface, the tag declares the interface as a managable service. A service tag may appear once in a interface defintion. Attributes
Examplepackage org.apache.avalon.playground; /** * Example of a component declaring export of a set of services. * * @avalon.component version="5.1" name="vault" * @avalon.service type="somwhere.Vault; * @avalon.service type="somwhere.KeystoreHandler" version="2.1.1; */ public class DefaultVault implements Vault, KeystoreHandler { ... } Generated meta-info type descriptor: <type> <info> <version>5.1.0</version> <name>vault</name> </info> <services> <service type="somwhere.Vault" version="1.0.0"/> <service type="somwhere.KeystoreHandler" version="2.1.1"/> </services> </type> |