package com.speed.service.common.protocol;

/**
 * Definite the speed service.
 * All Service of Speed should be Allowed this Protocol
 * A service define by three points:
 * 1 service name
 * 2 service version
 * 3
 * <p/>
 * User: gais.ch
 * Date: 15-4-19
 * Time: 上午7:23
 */
public interface ServiceDefinition {


    /**
     * get service name
     * this name should be unique in one project
     * the full service name is define of GROUP_PROJECT_SERVICE
     *
     * @return
     */
    String getServiceName();

    /**
     * set service name
     *
     * @param serviceName
     */
    void setServiceName(String serviceName);

    /**
     * get service version
     *
     * @return
     */
    String getServiceVersion();

    /**
     * set service version
     *
     * @param version
     */
    void setServiceVersion(String version);

    /**
     * service group
     *
     * @return
     */
    String getServiceGroup();

    /**
     * set group
     *
     * @param group
     */
    void setServiceGroup(String group);
}

@@ -37,16 +37,50 @@
 tocol;%0A%0A
+import java.lang.reflect.Method;%0A%0A
 /**%0A * D
@@ -1073,10 +1073,358 @@
 group);%0A
+%0A%0A    /**%0A     * set service interface%0A     *%0A     * @param serviceInterface%0A     */%0A    void setServiceInterface(Class%3C?%3E serviceInterface);%0A%0A    /**%0A     * get service interface%0A     *%0A     * @return%0A     */%0A    Class%3C?%3E getServiceInterface();%0A%0A    /**%0A     * get method of service%0A     *%0A     * @return%0A     */%0A    Method%5B%5D getServiceMethods();%0A
 %7D%0A

set service method