Annotation Interface Value


Indicates that the annotated element is to be resolved to a value. This annotation is typically used to inject values into fields, method parameters, constructor parameters, or method return values in Bring applications.

The value provided in this annotation represents the key or expression to resolve from property sources or other value providers.

Example usage in a Bring component:


 public class MyComponent {
     {@literal @}Value("${my.property}")
     private String myPropertyValue;

     // Methods and logic using myPropertyValue
 }
 
Since:
1.0
Author:
Blyzhnytsia Team
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details