com.sun.hk2.component
Annotation Type CompanionSeed


@Contract
@InhabitantAnnotation(value="default")
@CagedBy(value=CompanionSeed.Registerer.class)
public @interface CompanionSeed

Marks the companion relationship with another component.

Implementations of this contract are generated for each component with the CompanionOf annotation.

Author:
Kohsuke Kawaguchi

Required Element Summary
 java.lang.Class<?> companion
          Other metadata to capture the companion class.
 java.lang.Class<?> lead
          The type of the lead class.
 

Element Detail

lead

@Index
@InhabitantMetadata(value="lead")
public abstract java.lang.Class<?> lead
The type of the lead class.


companion

@InhabitantMetadata(value="companionClass")
public abstract java.lang.Class<?> companion
Other metadata to capture the companion class.



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