Interface CbConfiguration<T,U>

All Superinterfaces:
Serializable, SerializableLambda
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CbConfiguration<T,U> extends SerializableLambda
Represents a callback(Configuration) that is invoked on a Component implementation class. The callback accepts a type-safe configuration class for wrapping properties behind a dynamic proxy interface.

The T generic parameter represents the type of the class on which the callback is invoked on.

The U generic parameter represents the type of the configuration class passed to the callback argument.

Using such callback provides a way for creating type-safe configurations from the actual Dictionary that is normally injected by Dependency Manager. For more information about configuration types, please refer to ConfigurationDependencyBuilder.

Author:
Felix Project Team
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T instance, U configuration)
    Handles the given arguments
     
  • Method Details

    • accept

      void accept(T instance, U configuration)
      Handles the given arguments
      Parameters:
      instance - the Component implementation instance on which the callback is invoked on.
      configuration - the configuration proxy
    • andThen

      default CbConfiguration<T,U> andThen(CbConfiguration<T,U> after)