Some refactoring and added some JUnit tests

This commit is contained in:
Ziver Koc 2016-09-27 16:56:51 +02:00
parent d107cd504c
commit 24c4fac26d
13 changed files with 168 additions and 100 deletions

12
src/zutil/net/ws/WSInterface.java Normal file → Executable file
View file

@ -30,14 +30,16 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
*
* Specifies web service parameter names and other things.
* Specifies web service definitions. Which methods that will
* be published and other related metadata.
*
* Example:
* <pre>
* private static class Test implements WSInterface{
* public Test(){}
*
* @WSDocumentation("blabla")
* @WSDLParamDocumentation("olle = an variable?")
* @WSDLParamDocumentation("olle = a variable?")
* public void pubZ(
* @WSParamName("olle") int lol)
* throws Exception{
@ -51,7 +53,7 @@ import java.lang.annotation.Target;
* ....
* }
*
* @WSDisabled()
* @WSIgnore()
* public void privaZ(....){
* ...
* }
@ -87,13 +89,13 @@ public interface WSInterface {
}
/**
* Disables publication of the given method
* Skipp publication of the given method
*
* @author Ziver
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface WSDisabled { }
public @interface WSIgnore { }
/**
* Method or Parameter comments for the WSDL.