Annotation Interface RemoveMethod


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface RemoveMethod
Annotation for item removal methods. Normally each item inherits Item.remove(de.hybris.platform.jalo.SessionContext) method so no other method has to me marked.

Nevertheless if business logic requires to have a different removal method it should be marked with this annotation to allow event listening upon.

The annotation must contain the item type code which the removal method belongs to:

 @RemoveAction("MyType")
 public void thrash()
 {
        // ...
 }
 
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details