Annotation Type MediatorPattern


  • @Retention(RUNTIME)
    @Target(TYPE)
    @Documented
    @DesignPattern(type=BEHAVIORAL,
                   related={FacadePattern.class,ObserverPattern.class})
    public @interface MediatorPattern
    Intent [GoF, pg 273]: Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction independently.

    Mediator Structure

    Since:
    2010-08-09
    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:
        ""