Uses of Interface
eu.cloudnetservice.driver.inject.InjectionLayer
Packages that use InjectionLayer
Package
Description
-
Uses of InjectionLayer in eu.cloudnetservice.driver.inject
Classes in eu.cloudnetservice.driver.inject that implement InjectionLayerModifier and TypeClassDescription(package private) final recordDefaultInjectionLayer<I extends Injector>The default implementation for of an injector layer.(package private) final recordUncloseableInjectionLayer<I extends Injector>An injection layer which delegates all calls to the parent layer, but throwing an exception if there is a try to close the layer.Fields in eu.cloudnetservice.driver.inject declared as InjectionLayerModifier and TypeFieldDescriptionprivate static InjectionLayer<Injector> InjectionLayerProvider.bootprivate static InjectionLayer<Injector> InjectionLayerProvider.extprivate final @NonNull InjectionLayer<I> UncloseableInjectionLayer.parentThe field for theparentrecord component.Fields in eu.cloudnetservice.driver.inject with type parameters of type InjectionLayerModifier and TypeFieldDescriptionprivate final Collection<Tuple2<Object, InjectionLayer<? extends Injector>>> InjectionLayerRegistry.knownLayersprivate static final Class<InjectionLayer> InjectionLayerProvider.RAW_ELEMENTMethods in eu.cloudnetservice.driver.inject that return InjectionLayerModifier and TypeMethodDescriptionDefaultInjectionLayer.asUncloseable()Makes this injection layer not closeable, returning the same layer if it is already not closeable.InjectionLayer.asUncloseable()Makes this injection layer not closeable, returning the same layer if it is already not closeable.UncloseableInjectionLayer.asUncloseable()Makes this injection layer not closeable, returning the same layer if it is already not closeable.static @NonNull InjectionLayer<Injector> InjectionLayer.boot()Returns the singleton boot injection layer.static @NonNull InjectionLayer<Injector> InjectionLayerProvider.boot()Get the singleton boot injection layer.static @NonNull InjectionLayer<Injector> Constructs a new child layer for the given parent layer.static @NonNull InjectionLayer<Injector> Constructs a new child layer for the given parent layer.private static <I extends Injector>
@NonNull InjectionLayer<I> InjectionLayerProvider.configuredLayer(@NonNull String name, I injector, @NonNull Consumer<InjectionLayer<I>> configurator) Provides a fresh injection layer, with no bindings configured to the returned injector.static @NonNull InjectionLayer<Injector> InjectionLayerProvider.configuredLayer(@NonNull String name, @NonNull Consumer<InjectionLayer<Injector>> configurator) Provides a fresh injection layer, with no bindings configured to the returned injector.static @NonNull InjectionLayer<Injector> InjectionLayer.ext()Returns the singleton injection layer which should be used for all kinds of external component injection (like plugins).static @NonNull InjectionLayer<Injector> InjectionLayerProvider.ext()Returns the singleton injection layer which should be used for all kinds of external component injection (like plugins).@Nullable InjectionLayer<? extends Injector> InjectionLayerRegistry.findByHint(@Nullable Object hint) Finds the first layer which is exactly associated with the given hint (as defined by the operator==).static @NonNull InjectionLayer<?> InjectionLayer.findLayerOf(@NonNull Object object) Finds the injection layer associated with the given object or returns the defaultInjectionLayer.ext()injection layer.static @NonNull InjectionLayer<?> InjectionLayer.findLayerOf(@NonNull Object object, @NonNull InjectionLayer<?> def) Finds the injection layer associated with the given object or returns the given default injection layer.static @NonNull InjectionLayer<?> InjectionLayerProvider.findLayerOf(@NonNull Object object, @NonNull InjectionLayer<?> def) Finds the injection layer associated with the given object or returns the given default injection layer.static @NonNull InjectionLayer<Injector> Provides a fresh injection layer, with no bindings configured to the returned injector, except for a binding to the layer itself with the provided name.static @NonNull InjectionLayer<Injector> Provides a fresh injection layer, with no bindings configured to the returned injector, except for a binding to the layer itself with the provided name.InjectionLayerHolder.injectionLayer()Get the injection layer associated with this holder.UncloseableInjectionLayer.parent()Returns the value of theparentrecord component.Registers this injection layer to the injection layer registry.Registers this injection layer to the injection layer registry.Registers this injection layer to the injection layer registry.static @NonNull InjectionLayer<Injector> InjectionLayer.specifiedChild(@NonNull InjectionLayer<? extends Injector> parent, @NonNull String name, @NonNull Consumer<TargetedInjectorBuilder> configurator) Constructs a new child layer for the given parent layer.static @NonNull InjectionLayer<Injector> InjectionLayerProvider.specifiedChild(@NonNull InjectionLayer<? extends Injector> parent, @NonNull String name, @NonNull Consumer<TargetedInjectorBuilder> configurator) Constructs a new child layer for the given parent layer.Methods in eu.cloudnetservice.driver.inject with parameters of type InjectionLayerModifier and TypeMethodDescriptionstatic @NonNull InjectionLayer<Injector> Constructs a new child layer for the given parent layer.static @NonNull InjectionLayer<Injector> Constructs a new child layer for the given parent layer.voidBootLayerConfigurator.configureBootLayer(@NonNull InjectionLayer<?> bootLayer) Configures the boot injection layer.InjectUtil.findAllInstances(@NonNull InjectionLayer<?> layer, @NonNull BindingKey<?>[] keys) Finds all instances that are requested by the given element array in the given injection layer.InjectUtil.findAllInstances(@NonNull InjectionLayer<?> layer, @NonNull BindingKey<?>[] keys, int offset) Finds all instances that are requested by the given element array in the given injection layer.static @NonNull InjectionLayer<?> InjectionLayer.findLayerOf(@NonNull Object object, @NonNull InjectionLayer<?> def) Finds the injection layer associated with the given object or returns the given default injection layer.static @NonNull InjectionLayer<?> InjectionLayerProvider.findLayerOf(@NonNull Object object, @NonNull InjectionLayer<?> def) Finds the injection layer associated with the given object or returns the given default injection layer.voidInjectionLayerRegistry.registerLayer(@NonNull InjectionLayer<? extends Injector> layer, @NonNull Object... hints) Registers to this registry and maps the given hints to the layer.static @NonNull InjectionLayer<Injector> InjectionLayer.specifiedChild(@NonNull InjectionLayer<? extends Injector> parent, @NonNull String name, @NonNull Consumer<TargetedInjectorBuilder> configurator) Constructs a new child layer for the given parent layer.static @NonNull InjectionLayer<Injector> InjectionLayerProvider.specifiedChild(@NonNull InjectionLayer<? extends Injector> parent, @NonNull String name, @NonNull Consumer<TargetedInjectorBuilder> configurator) Constructs a new child layer for the given parent layer.voidInjectionLayerRegistry.unregisterLayer(@NonNull InjectionLayer<?> layer) Unregisters all hints that were associated with the given layer.Method parameters in eu.cloudnetservice.driver.inject with type arguments of type InjectionLayerModifier and TypeMethodDescriptionprivate static <I extends Injector>
@NonNull InjectionLayer<I> InjectionLayerProvider.configuredLayer(@NonNull String name, I injector, @NonNull Consumer<InjectionLayer<I>> configurator) Provides a fresh injection layer, with no bindings configured to the returned injector.static @NonNull InjectionLayer<Injector> InjectionLayerProvider.configuredLayer(@NonNull String name, @NonNull Consumer<InjectionLayer<Injector>> configurator) Provides a fresh injection layer, with no bindings configured to the returned injector.private static voidInjectionLayerProvider.registerBindings(@NonNull Injector injector, @NonNull jakarta.inject.Provider<InjectionLayer<?>> layer, @NonNull String name, @NonNull Consumer<UninstalledBinding<?>> register) Constructors in eu.cloudnetservice.driver.inject with parameters of type InjectionLayerModifierConstructorDescription(package private)UncloseableInjectionLayer(@NonNull InjectionLayer<I> parent) Creates an instance of aUncloseableInjectionLayerrecord class. -
Uses of InjectionLayer in eu.cloudnetservice.driver.module
Methods in eu.cloudnetservice.driver.module that return InjectionLayerModifier and TypeMethodDescriptionModuleWrapper.injectionLayer()Get the injection layer which was used while creating this module instance and is used to inject module tasks. -
Uses of InjectionLayer in eu.cloudnetservice.driver.module.driver
Methods in eu.cloudnetservice.driver.module.driver with parameters of type InjectionLayerModifier and TypeMethodDescription<C,T> T DriverModule.readConfigAndInstantiate(@NonNull InjectionLayer<?> injectionLayer, @NonNull Class<C> configModelType, @NonNull Supplier<C> defaultConfigFactory, @NonNull Class<T> classToInstantiate, @NonNull DocumentFactory documentFactory) Reads the module configuration file and converts the type of the configuration to the given model type, creating the configuration if necessary.<C,T> T DriverModule.readConfigAndInstantiate(@NonNull InjectionLayer<?> injectionLayer, @NonNull Class<C> configModelType, @NonNull Supplier<C> defaultConfigFactory, @NonNull Class<T> classToInstantiate, @NonNull UnaryOperator<InjectionRequest<T>> decorator, @NonNull DocumentFactory documentFactory) Reads the module configuration file and converts the type of the configuration to the given model type, creating the configuration if necessary.