Package aas_core.aas3_0.enhancing
Class Enhancer<EnhancementT>
java.lang.Object
aas_core.aas3_0.enhancing.Unwrapper<EnhancementT>
aas_core.aas3_0.enhancing.Enhancer<EnhancementT>
- Type Parameters:
EnhancementT- structure of the enhancement
Wrap and unwrap the instances of model classes with enhancement.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class aas_core.aas3_0.enhancing.Unwrapper
mustUnwrap, unwrap
-
Constructor Details
-
Enhancer
- Parameters:
enhancementFactory- how to enhance the instances.If it returns
null, the instance will not be wrapped. However, the wrapping will continue recursively.
-
-
Method Details
-
wrap
Wrap the instance with an enhancement.Double wraps are not allowed to prevent runtime leakage.
If you use references to the instance objects, you have to update them after the wrapping, as the wrapping is recursive.
- Parameters:
that- model instance to be wrapped- Returns:
thatinstance wrapped recursively with enhancements
-