org.zkoss.bind.annotation.DefaultCommand Maven / Gradle / Ivy
/* DefaultCommand.java
Purpose:
Description:
History:
Oct 23, 2012 , Created by dennis
Copyright (C) 2011 Potix Corporation. All Rights Reserved.
*/
package org.zkoss.bind.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Marker annotation to identify a default command method.
* When a command send to a view model, it will check Command method first, if no Command method was found, then it will check
* DefaultCommand method.
* A DefaultCommand method could also use with {@link BindingParam} and others to assign a binding argument as its parameter,
* and {@link Default} to assign a default value if the argument is null.
*
* @see Command
* @see BindingParam
* @see ExecutionParam
* @see ExecutionArgParam
* @see HeaderParam
* @see CookieParam
* @see QueryParam
* @see ScopeParam
* @see ContextParam
* @see Default
* @author dennischen
* @since 6.5.1
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface DefaultCommand {
}