Annotation Type AdapterPattern


  • @Retention(RUNTIME)
    @Target(TYPE)
    @Documented
    @DesignPattern(type=STRUCTURAL,
                   related={BridgePattern.class,DecoratorPattern.class,ProxyPattern.class})
    public @interface AdapterPattern
    Intent [GoF, pg 139]: Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces.

    The structure for an object adapter is: Object Adapter Structure

    The structure for a class adapter is: Class Adapter Structure

    Since:
    2010-07-28
    Author:
    Heinz Kabutz
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String comment  
      java.lang.Class[] participants  
    • Element Detail

      • participants

        java.lang.Class[] participants
        Default:
        {}
      • comment

        java.lang.String comment
        Default:
        ""