org.jvnet.hk2.annotations
Annotation Type CompanionOf


@Contract
@Documented
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface CompanionOf

Marks the component as a companion to another "lead" component.

Whenever the lead component is placed into habitat, the companion will be also placed into the habitat.

Author:
Kohsuke Kawaguchi

Required Element Summary
 java.lang.Class<?> value
          Specifies the target of the companion.
 

Element Detail

value

@Index
public abstract java.lang.Class<?> value
Specifies the target of the companion.



Copyright © 2008 Sun Microsystems, Inc.. All Rights Reserved.