Class ExtensionPoint<E,M extends Trait>

java.lang.Object
org.alfresco.traitextender.ExtensionPoint<E,M>

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 Details

    • ExtensionPoint

      public ExtensionPoint(Class<E> extensionAPI, Class<M> traitAPI)
  • Method Details

    • getExtensionAPI

      public Class<E> getExtensionAPI()
    • getTraitAPI

      public Class<M> getTraitAPI()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object