Class ExtensionPoint<E,​M extends Trait>


  • public class ExtensionPoint<E,​M extends Trait>
    extends Object
    Defines a two-way interfacing mechanism between a Trait exposing object and an extension of that object.
    The extended object can call methods of the extensionAPI which will be able to interact with the extended object through the traitAPI interface it was paired with in the extension point. The actual circumstances in which the extension methods are invoked are not defined by the extension point.
    Author:
    Bogdan Horje
    • Constructor Detail

      • ExtensionPoint

        public ExtensionPoint​(Class<E> extensionAPI,
                              Class<M> traitAPI)