Interface DecoratorDefinition.PartialDecoratorDefinition<C>

Type Parameters:
C - The declared type of the component to decorate.
Enclosing interface:
DecoratorDefinition<C,D extends C>

public static interface DecoratorDefinition.PartialDecoratorDefinition<C>
Represents an intermediate phase in the creation of a DecoratorDefinition.
  • Method Summary

    Modifier and Type
    Method
    Description
    <D extends C>
    DecoratorDefinition<C,D>
    with(ComponentDecorator<C,D> decorator)
    Defines the decorator function to use to decorate target components.
  • Method Details

    • with

      <D extends C> DecoratorDefinition<C,D> with(@Nonnull ComponentDecorator<C,D> decorator)
      Defines the decorator function to use to decorate target components.
      Type Parameters:
      D - The instance type of the decorated component.
      Parameters:
      decorator - The function to use to decorate a component.
      Returns:
      A DecoratorDefinition for direct use or further configuration.