Interface Aspectable

All Known Subinterfaces:
GwtServerGadget<C>, SwingGadget, WebPluginGadget<C>
All Known Implementing Classes:
AbstractValueHoldingSwingGadget

public interface Aspectable
Interface for classes supporting aspect provisioning. Aspects provide means for optional functionalities. If an aspectable supports functionalities defined by an aspect's API, requesting the aspect's technical type, the AspectType, from the aspectable will return an object conforming to the respective programmatic type of the aspect. If an aspectable does not support the requested aspect, it returns null.

See the implementors of AspectType to find out about available aspect APIs.

Since:
4.2.405
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    getAspect(AspectType<T> aspect)
    Request an aspect from the aspectable.
  • Method Details

    • getAspect

      @Nullable <T> T getAspect(@NotNull AspectType<T> aspect)
      Request an aspect from the aspectable.
      Type Parameters:
      T - The type of the returned instance.
      Parameters:
      aspect - The aspect requested.
      Returns:
      The aspect instance or null, if the aspect is not supported.
      Since:
      4.2.405