Annotation Type AnnotatedSink.Bind


@Documented
@Retention(RUNTIME)
@Target(METHOD)
public static @interface AnnotatedSink.Bind
Annotation used to bind an event to a method. This bind is composed of a name (the attribute key) and an element type. For example, the annotation
 @Bind(value = "test", type = ElementType.NODE)
 
will be triggered the annotated method when receiving 'nodeAttributeXXX()' methods.
  • Required Element Summary

    Required Elements 
    Modifier and Type Required Element Description
    String value
    Name of the attribute key that triggered the annotated method.
  • Optional Element Summary

    Optional Elements 
    Modifier and Type Optional Element Description
    SourceBase.ElementType type
    Type of element that triggered the annotated method.
  • Element Details

    • value

      String value
      Name of the attribute key that triggered the annotated method.
      Returns:
      an attribute key
    • type

      Type of element that triggered the annotated method. Default is GRAPH.
      Returns:
      type of element in GRAPH, NODE or EDGE
      Default:
      org.graphstream.stream.SourceBase.ElementType.GRAPH