Annotation Type OnVSDestroy


  • @Documented
    @Retention(RUNTIME)
    @Target(METHOD)
    @Repeatable(OnVSDestroys.class)
    public @interface OnVSDestroy
    Annotation for tagging methods to receive VirtualSpace Destroy events.

    Only 1 acceptable method pattern for this annotation.
    Note: methodName can be any name you want to use.

    Example:

       @VirtualSpace(ref="Proj:/vs/subFolder/OneVS")
       public class MyVSListener
         {
         public MyVSListener()
           {
           ...
           }
    
         // Method called when a VirtualSpace component is created.
         @OnVSCreate(name="myField")
         public void onFieldDestroyed(VSDestroyEvent event)
           {
           // Clean-up of resources, or so...
           ...
           }
         }
     

    Author:
    Christopher Mindus
    • Required Element Summary

      Required Elements 
      Modifier and TypeRequired ElementDescription
      java.lang.Stringname
      The Name or Relative Path of the Property to associate with the method.
    • Element Detail

      • name

        java.lang.String name
        The Name or Relative Path of the Property to associate with the method. The name is either a Name without slash ('/') that is a direct child of the VirtualSpace reference, or a Relative Path from the VirtualSpace root.
        Returns:
        The Property Name path from the VirtualSpace base "ref" reference specification, e.g. "myTable" or "group/myField".