Class AerogelAutoModuleImpl
java.lang.Object
dev.derklaro.aerogel.auto.internal.AerogelAutoModuleImpl
- All Implemented Interfaces:
AerogelAutoModule
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final dev.derklaro.aerogel.registry.Registry.WithKeyMapping<String, AutoEntryDecoder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondev.derklaro.aerogel.registry.Registry.WithKeyMapping<String, AutoEntryDecoder> Get the decoder registry that is used by this module instance.private @NotNull LazyBindingCollectiondeserializeBindings(@NotNull DataInputStream dataInput, @NotNull ClassLoader classLoader, @Nullable LazyBindingCollection previousResult) deserializeBindings(@NotNull InputStream dataStream) Deserializes the bindings that are contained in the given data stream.deserializeBindings(@NotNull InputStream dataStream, @Nullable ClassLoader loader) Deserializes the bindings that are contained in the given data stream.
-
Field Details
-
decoderRegistry
private final dev.derklaro.aerogel.registry.Registry.WithKeyMapping<String, AutoEntryDecoder> decoderRegistry
-
-
Constructor Details
-
AerogelAutoModuleImpl
public AerogelAutoModuleImpl()
-
-
Method Details
-
decoderRegistry
@NotNull public dev.derklaro.aerogel.registry.Registry.WithKeyMapping<String, AutoEntryDecoder> decoderRegistry()Description copied from interface:AerogelAutoModuleGet the decoder registry that is used by this module instance. The registry can be used to register additional deserializers or unregister them as needed.- Specified by:
decoderRegistryin interfaceAerogelAutoModule- Returns:
- the decoder registry of this module instance.
-
deserializeBindings
@NotNull public @NotNull LazyBindingCollection deserializeBindings(@NotNull @NotNull InputStream dataStream) Description copied from interface:AerogelAutoModuleDeserializes the bindings that are contained in the given data stream. The given input stream is closed automatically when this method completes.- Specified by:
deserializeBindingsin interfaceAerogelAutoModule- Parameters:
dataStream- the data stream to decode.- Returns:
- the deserialized bindings contained in the given stream.
-
deserializeBindings
@NotNull public @NotNull LazyBindingCollection deserializeBindings(@NotNull @NotNull InputStream dataStream, @Nullable @Nullable ClassLoader loader) Description copied from interface:AerogelAutoModuleDeserializes the bindings that are contained in the given data stream. The given input stream is closed automatically when this method completes.- Specified by:
deserializeBindingsin interfaceAerogelAutoModule- Parameters:
dataStream- the data stream to decode.loader- the class loader to use when decoding types.- Returns:
- the deserialized bindings contained in the given stream.
-
deserializeBindings
@NotNull private @NotNull LazyBindingCollection deserializeBindings(@NotNull @NotNull DataInputStream dataInput, @NotNull @NotNull ClassLoader classLoader, @Nullable @Nullable LazyBindingCollection previousResult) throws IOException - Throws:
IOException
-