Javadoc TagsContext TagThe context tag enables the declaration of a custom context interface argument. package net.osm; /** * Example of a component declaring a custom context argument type. * * @avalon.meta.version 1.3 * @avalon.meta.name primary-component */ public class Primary implements Contextualizable { /** * @avalon.meta.context type="net.osm.CustomContext" */ public void contextualize( Context context ) throws ContextException { CustomContext custom = (CustomContext) context; ... } } Generated meta-info type descriptor: <type> <info> <version>1.3.0</version> <name>primary-component</name> </info> <context type="net.osm.CustomComponent" version="1.0.0"> </context> </type> |