de.espirit.firstspirit.aspects
Interface Aspectable

All Known Subinterfaces:
SwingGadget
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:
AspectType

Method Summary
<T> T
getAspect(AspectType<T> aspect)
          Request an aspect from the aspectable.
 

Method Detail

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


Copyright © 2012 e-Spirit AG. All Rights Reserved. Build 4.2.480