Package de.espirit.firstspirit.aspects
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 TypeMethodDescription<T> T
getAspect
(@NotNull AspectType<T> aspect) Request an aspect from the aspectable.
-
Method Details
-
getAspect
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
-