org.osoa.sca.annotations
Annotation Type Reference


@Target(value={METHOD,FIELD,PARAMETER})
@Retention(value=RUNTIME)
public @interface Reference

Annotation used to indicate a constructor parameter, field or method that is used to inject a reference.

Version:
$Rev: 701389 $ $Date: 2008-10-03 19:55:27 +0530 (Fri, 03 Oct 2008) $

Optional Element Summary
 java.lang.String name
          The name of the reference.
 boolean required
          Indicates if a reference must be specified.
 

name

public abstract java.lang.String name
The name of the reference. If not specified then the name will be derived from the annotated field or method.

Returns:
the name of the reference
Default:
""

required

public abstract boolean required
Indicates if a reference must be specified.

Returns:
true if a reference must be specified
Default:
true


Copyright © 2009. All Rights Reserved.