io.vertx.codegen.annotations.ProxyClose Java Examples
The following examples show how to use
io.vertx.codegen.annotations.ProxyClose.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ProxyModel.java From vertx-service-proxy with Apache License 2.0 | 6 votes |
@Override protected MethodInfo createMethodInfo(Set<ClassTypeInfo> ownerTypes, String methodName, String comment, Doc doc, TypeInfo returnType, Text returnDescription, boolean isFluent, boolean isCacheReturn, List<ParamInfo> mParams, ExecutableElement methodElt, boolean isStatic, boolean isDefault, ArrayList<TypeParamInfo.Method> typeParams, TypeElement declaringElt, boolean methodDeprecated, Text methodDeprecatedDesc) { AnnotationMirror proxyIgnoreAnnotation = Helper.resolveMethodAnnotation(ProxyIgnore.class, elementUtils, typeUtils, declaringElt, methodElt); boolean isProxyIgnore = proxyIgnoreAnnotation != null; AnnotationMirror proxyCloseAnnotation = Helper.resolveMethodAnnotation(ProxyClose.class, elementUtils, typeUtils, declaringElt, methodElt); boolean isProxyClose = proxyCloseAnnotation != null; ProxyMethodInfo proxyMeth = new ProxyMethodInfo(ownerTypes, methodName, returnType, returnDescription, isFluent, isCacheReturn, mParams, comment, doc, isStatic, isDefault, typeParams, isProxyIgnore, isProxyClose, methodDeprecated, methodDeprecatedDesc); if (isProxyClose && mParams.size() > 0) { if (mParams.size() > 1) { throw new GenException(this.modelElt, "@ProxyClose methods can't have more than one parameter"); } if (proxyMeth.getKind() != MethodKind.FUTURE) { throw new GenException(this.modelElt, "@ProxyClose parameter must be Handler<AsyncResult<Void>>"); } TypeInfo type = mParams.get(0).getType(); TypeInfo arg = ((ParameterizedTypeInfo) ((ParameterizedTypeInfo) type).getArgs().get(0)).getArgs().get(0); if (arg.getKind() != ClassKind.VOID) { throw new GenException(this.modelElt, "@ProxyClose parameter must be " + "Handler<AsyncResult<Void>> instead of " + type); } } return proxyMeth; }
Example #2
Source File: Queryable.java From vertx-graphql-service-discovery with Apache License 2.0 | 4 votes |
/** * Invoked when the queryable service proxy closes. Does nothing by default, but can be overridden in sub-classes. */ @ProxyClose default void close() { // NO OP }
Example #3
Source File: ValidWebApiProxy.java From vertx-web with Apache License 2.0 | 4 votes |
@ProxyClose void closeIt();
Example #4
Source File: AnotherTestService.java From vertx-web with Apache License 2.0 | 4 votes |
@ProxyClose void close();
Example #5
Source File: AnotherTestService.java From vertx-web with Apache License 2.0 | 4 votes |
@ProxyClose void close();
Example #6
Source File: TestConnection.java From vertx-service-proxy with Apache License 2.0 | 4 votes |
@ProxyClose void close();
Example #7
Source File: InvalidClose1.java From vertx-service-proxy with Apache License 2.0 | 4 votes |
@ProxyClose void closeIt(Handler<AsyncResult<String>> handler);
Example #8
Source File: ValidProxy.java From vertx-service-proxy with Apache License 2.0 | 4 votes |
@ProxyClose void closeIt();
Example #9
Source File: ValidProxyCloseWithFuture.java From vertx-service-proxy with Apache License 2.0 | 4 votes |
@ProxyClose void closeIt(Handler<AsyncResult<Void>> handler);
Example #10
Source File: InvalidClose3.java From vertx-service-proxy with Apache License 2.0 | 4 votes |
@ProxyClose void closeIt(Handler<AsyncResult<String>> handler, String s);
Example #11
Source File: InvalidClose2.java From vertx-service-proxy with Apache License 2.0 | 4 votes |
@ProxyClose void closeIt(String s);