Interface WrapperProcessor<W extends Wrapper>

  • Type Parameters:
    W - the type of the wrapper that extends Wrapper

    public interface WrapperProcessor<W extends Wrapper>
    A processor interface for handling Wrapper instances.

    Implementations of this interface can perform operations on a Wrapper object, potentially modifying or enhancing the wrapper instance during processing.

    Example Usage

    
     public class LoggingWrapperProcessor implements WrapperProcessor<MyWrapper> {
         public MyWrapper process(MyWrapper wrapper) {
             System.out.println("Processing wrapper: " + wrapper);
             return wrapper; // Return the same or modified instance
         }
     }
     
    Since:
    1.0.0
    Author:
    Mercy
    • Method Detail

      • process

        W process​(W wrapper)
        Processes the Wrapper bean
        Parameters:
        wrapper - Wrapper instance
        Returns:
        The processed Wrapper instance that may be wrapped again