Class HoconProcessor
java.lang.Object
io.vertx.config.hocon.HoconProcessor
- All Implemented Interfaces:
ConfigProcessor
A processor using Typesafe Conf to read Hocon files. It also support JSON and Properties.
More details on Hocon and the used library on the
Hocon documentation page.
- Author:
- Clement Escoffier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionname()Name of the processor, generally the name of the format it handles.process(Vertx vertx, JsonObject configuration, Buffer input) Transforms the giveninputinto aJsonObject.
-
Constructor Details
-
HoconProcessor
public HoconProcessor()
-
-
Method Details
-
name
Description copied from interface:ConfigProcessorName of the processor, generally the name of the format it handles.- Specified by:
namein interfaceConfigProcessor- Returns:
- the name
-
process
Description copied from interface:ConfigProcessorTransforms the giveninputinto aJsonObject. This is an asynchronous non-blocking transformation. If the transformation fails, the passedAsyncResultwould be marked as failed. On success, the result contains theJsonObject.- Specified by:
processin interfaceConfigProcessor- Parameters:
vertx- the Vert.x instanceconfiguration- the processor configuration, may benullinput- the input, must not benull- Returns:
- a future notified with the result
-