de.akquinet.jbosscc.needle.annotation
Annotation Type InjectInto


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface InjectInto

Is used to inject an instance into a specific ObjectUnderTest instance.


Required Element Summary
 String targetComponentId
          Id of the object under test.
 
Optional Element Summary
 String fieldName
          (Optional) fieldName of the injection target Default is the assignable type
 

Element Detail

targetComponentId

public abstract String targetComponentId
Id of the object under test. This is the field name of the component, by default. You can specify the id within the @ObjectUnderTest annotation.

See Also:
ObjectUnderTest.id()

fieldName

public abstract String fieldName
(Optional) fieldName of the injection target

Default is the assignable type

Default:
""


Copyright © 2013 akquinet AG. All Rights Reserved.