/*
 * Copyright (C) 2016 Y.K. Chan
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package jacobi.api.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotate a delegate method. 
 * 
 * <p>A delegate method is a special implementation 
 * for certain facade method, that is usually more efficient than general
 * implementation specified by the Implementation annotation, but applicable
 * only for this child-class of parameter.<p>
 * 
 * @author Y.K. Chan
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Delegate {
    
    public Class<?> facade();
    
    public String method();
    
}

@@ -1208,169 +1208,853 @@
 %0A * 
-@author Y.K. Chan%0D%0A */%0D%0A@Target(ElementType.METHOD)%0D%0A@Retention(RetentionPolicy.RUNTIME)%0D%0Apublic @interface Delegate %7B%0D%0A    %0D%0A    public Class%3C?%3E facade();%0D%0A    
+%3Cp%3EThe facade engine should match by annotated facade interface and method%0D%0A * name, and find the method with the same signature in case of overloading.%3C/p%3E%0D%0A * %0D%0A * %3Cp%3EIt is advised that though it may be tempting to implement all%0D%0A * trivial operations, this may turn the matrix implementation into an God %0D%0A * object. Moreover, some silly cases with no actual practical usage,%0D%0A * such as finding determinant of an identity matrix, are not recommended to be%0D%0A * implemented.%3C/p%3E%0D%0A * %0D%0A * @author Y.K. Chan%0D%0A */%0D%0A@Target(ElementType.METHOD)%0D%0A@Retention(RetentionPolicy.RUNTIME)%0D%0Apublic @interface Delegate %7B%0D%0A    %0D%0A    /**%0D%0A     * Facade interface of the delegating method%0D%0A     * @return  Facade interface%0D%0A     */%0D%0A    public Class%3C?%3E facade();%0D%0A    %0D%0A    /**%0D%0A     * Method name of the delegating method%0D%0A     * @return  Method name%0D%0A     */
 %0D%0A  

Add javadoc