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 TypeMethodDescription<D extends C>
DecoratorDefinition<C, D> with(ComponentDecorator<C, D> decorator) Defines the decorator function to use to decorate target components.
-
Method Details
-
with
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
DecoratorDefinitionfor direct use or further configuration.
-