|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
AspectType
Method Summary | ||
---|---|---|
|
getAspect(AspectType<T> aspect)
Request an aspect from the aspectable. |
Method Detail |
---|
@Nullable <T> T getAspect(@NotNull AspectType<T> aspect)
T
- The type of the returned instance.aspect
- The aspect requested.
null
, if the aspect is not supported.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |