Este contenido no está disponible en el idioma seleccionado.
Chapter 10. Miscellaneous changes in Eclipse Vert.x
The following section describes miscellaneous changes in Eclipse Vert.x 4.
10.1. Removed the Starter class Copiar enlaceEnlace copiado en el portapapeles!
The Starter class has been removed. Use the Launcher class instead to start your Eclipse Vert.x applications without the main() method.
10.2. Isolated deployment for Java 8 Copiar enlaceEnlace copiado en el portapapeles!
Eclipse Vert.x 4 supports Java 11. This Java version does not support isolated class loading. In Eclipse Vert.x 4, isolated class loading will be supported for Java 8.
10.3. Removed hook methods from Eclipse Vert.x context Copiar enlaceEnlace copiado en el portapapeles!
The methods Context.addCloseHook() and Context.removeCloseHook() methods have been removed from the Context class. These methods have been moved to the internal interface InternalContext.
10.4. Removed the clone methods from options Copiar enlaceEnlace copiado en el portapapeles!
The methods KeyCertOptions.clone(), TrustOptions.clone(), and SSLEngineOptions.clone() have been removed. Use the methods KeyCertOptions.copy(), TrustOptions.copy(), and SSLEngineOptions.copy() instead.
10.5. Removed equals and hashcode methods from options Copiar enlaceEnlace copiado en el portapapeles!
The VertxOptions.equals() and VertxOptions.hashCode() methods have been removed.
10.6. New method to check file caching Copiar enlaceEnlace copiado en el portapapeles!
The VertxOptions.fileResolverCachingEnabled() method has been removed. Use FileSystemOptions.isFileCachingEnabled() method instead to check if file caching has been enabled to resolve classpaths.
10.7. Service Provider Interface (SPI) metrics Copiar enlaceEnlace copiado en el portapapeles!
The Metrics.isEnabled() method has been removed. The Service Provider Interface (SPI) metrics will return a null object to indicate that metrics are not enabled.
10.8. Removed the pooled buffer methods Copiar enlaceEnlace copiado en el portapapeles!
The pooled buffer methods TCPSSLOptions.isUsePooledBuffers() and TCPSSLOptions.setUsePooledBuffers() have been removed.
10.10. Changes in Eclipse Vert.x JUnit5 Copiar enlaceEnlace copiado en el portapapeles!
The following section describes the changes in Eclipse Vert.x JUnit5.
10.10.1. Support vertx-core module and updates in extensions Copiar enlaceEnlace copiado en el portapapeles!
The vertx-core module has been updated to use a service provider interface for parameter injection. This change resulted in following updates in JUnit5:
-
You must call the
Vertxparameter before any parameter that requires it for creation. For example, when injecting aWebClient. -
vertx-junit5module supports only thevertx-coremodule. -
reactiverse-junit5-extensionsmodule hosts extensions that contain extra parameter types, such as,WebClient. RxJava 1 and 2 bindings are now available as
vertx-junit5-rx-javaandvertx-junit5-rx-java2modules in thevertx-junit5-extensionsrepository.From Eclipse Vert.x 4.1.0, the RxJava 3 binding
vertx-junit5-rx-java3is available.
10.10.2. Deprecated succeeding and failing methods in Eclipse Vert.x text context Copiar enlaceEnlace copiado en el portapapeles!
The VertxTestContext.succeeding() and VertxTestContext.failing() methods have been deprecated. Use VertxTestContext.succeedingThenComplete() and VertxTestContext.failingThenComplete() methods instead.