All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zkoss.bind.annotation.DefaultCommand Maven / Gradle / Ivy

There is a newer version: 10.0.0-jakarta
Show newest version
/* 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 { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy